ci: Annotate all check runs with the pull request number
On check re-runs the annotations are discarded, so all check runs require the number to be set.
This commit is contained in:
1 file changed
+18
-3
@@ -35,10 +35,12 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
provider: ${{ steps.runners.outputs.provider }}
|
provider: ${{ steps.runners.outputs.provider }}
|
||||||
steps:
|
steps:
|
||||||
- name: Annotate with pull request number
|
- &ANNOTATION_PR_NUMBER
|
||||||
|
name: Annotate with pull request number
|
||||||
# This annotation is machine-readable and can be used to assign a check
|
# This annotation is machine-readable and can be used to assign a check
|
||||||
# run to its corresponding pull request. Running in one check run is
|
# run to its corresponding pull request. Running in all check runs is
|
||||||
# sufficient for each check suite.
|
# required, because check re-runs discard the annotations of other
|
||||||
|
# tasks in the test suite.
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" = "pull_request" ]; then
|
if [ "${{ github.event_name }}" = "pull_request" ]; then
|
||||||
echo "::notice title=debug_pull_request_number_str::${{ github.event.number }}"
|
echo "::notice title=debug_pull_request_number_str::${{ github.event.number }}"
|
||||||
@@ -63,6 +65,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Determine fetch depth
|
- name: Determine fetch depth
|
||||||
run: echo "FETCH_DEPTH=$((${{ github.event.pull_request.commits }} + 2))" >> "$GITHUB_ENV"
|
run: echo "FETCH_DEPTH=$((${{ github.event.pull_request.commits }} + 2))" >> "$GITHUB_ENV"
|
||||||
|
- *ANNOTATION_PR_NUMBER
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
@@ -141,6 +144,8 @@ jobs:
|
|||||||
BASE_ROOT_DIR: ${{ github.workspace }}
|
BASE_ROOT_DIR: ${{ github.workspace }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- *ANNOTATION_PR_NUMBER
|
||||||
|
|
||||||
- &CHECKOUT
|
- &CHECKOUT
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
@@ -212,6 +217,8 @@ jobs:
|
|||||||
job-name: 'Windows native, fuzz, VS 2022'
|
job-name: 'Windows native, fuzz, VS 2022'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- *ANNOTATION_PR_NUMBER
|
||||||
|
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
|
||||||
- &SET_UP_VS
|
- &SET_UP_VS
|
||||||
@@ -341,6 +348,8 @@ jobs:
|
|||||||
DANGER_CI_ON_HOST_FOLDERS: 1
|
DANGER_CI_ON_HOST_FOLDERS: 1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- *ANNOTATION_PR_NUMBER
|
||||||
|
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
|
||||||
- name: Configure environment
|
- name: Configure environment
|
||||||
@@ -381,6 +390,8 @@ jobs:
|
|||||||
TEST_RUNNER_TIMEOUT_FACTOR: 40
|
TEST_RUNNER_TIMEOUT_FACTOR: 40
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- *ANNOTATION_PR_NUMBER
|
||||||
|
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
|
||||||
- name: Download built executables
|
- name: Download built executables
|
||||||
@@ -547,6 +558,8 @@ jobs:
|
|||||||
file-env: './ci/test/00_setup_env_native_msan.sh'
|
file-env: './ci/test/00_setup_env_native_msan.sh'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- *ANNOTATION_PR_NUMBER
|
||||||
|
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
|
||||||
- name: Configure environment
|
- name: Configure environment
|
||||||
@@ -587,6 +600,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CONTAINER_NAME: "bitcoin-linter"
|
CONTAINER_NAME: "bitcoin-linter"
|
||||||
steps:
|
steps:
|
||||||
|
- *ANNOTATION_PR_NUMBER
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in new issue
Block a user