Skip to content

Commit fa213dc

Browse files
author
MarcoFalke
committed
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.
1 parent facf195 commit fa213dc

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ jobs:
3535
outputs:
3636
provider: ${{ steps.runners.outputs.provider }}
3737
steps:
38-
- name: Annotate with pull request number
38+
- &ANNOTATION_PR_NUMBER
39+
name: Annotate with pull request number
3940
# This annotation is machine-readable and can be used to assign a check
40-
# run to its corresponding pull request. Running in one check run is
41-
# sufficient for each check suite.
41+
# run to its corresponding pull request. Running in all check runs is
42+
# required, because check re-runs discard the annotations of other
43+
# tasks in the test suite.
4244
run: |
4345
if [ "${{ github.event_name }}" = "pull_request" ]; then
4446
echo "::notice title=debug_pull_request_number_str::${{ github.event.number }}"
@@ -63,6 +65,7 @@ jobs:
6365
steps:
6466
- name: Determine fetch depth
6567
run: echo "FETCH_DEPTH=$((${{ github.event.pull_request.commits }} + 2))" >> "$GITHUB_ENV"
68+
- *ANNOTATION_PR_NUMBER
6669
- uses: actions/checkout@v5
6770
with:
6871
ref: ${{ github.event.pull_request.head.sha }}
@@ -141,6 +144,8 @@ jobs:
141144
BASE_ROOT_DIR: ${{ github.workspace }}
142145

143146
steps:
147+
- *ANNOTATION_PR_NUMBER
148+
144149
- &CHECKOUT
145150
name: Checkout
146151
uses: actions/checkout@v5
@@ -212,6 +217,8 @@ jobs:
212217
job-name: 'Windows native, fuzz, VS 2022'
213218

214219
steps:
220+
- *ANNOTATION_PR_NUMBER
221+
215222
- *CHECKOUT
216223

217224
- &SET_UP_VS
@@ -341,6 +348,8 @@ jobs:
341348
DANGER_CI_ON_HOST_FOLDERS: 1
342349

343350
steps:
351+
- *ANNOTATION_PR_NUMBER
352+
344353
- *CHECKOUT
345354

346355
- name: Configure environment
@@ -381,6 +390,8 @@ jobs:
381390
TEST_RUNNER_TIMEOUT_FACTOR: 40
382391

383392
steps:
393+
- *ANNOTATION_PR_NUMBER
394+
384395
- *CHECKOUT
385396

386397
- name: Download built executables
@@ -547,6 +558,8 @@ jobs:
547558
file-env: './ci/test/00_setup_env_native_msan.sh'
548559

549560
steps:
561+
- *ANNOTATION_PR_NUMBER
562+
550563
- *CHECKOUT
551564

552565
- name: Configure environment
@@ -587,6 +600,8 @@ jobs:
587600
env:
588601
CONTAINER_NAME: "bitcoin-linter"
589602
steps:
603+
- *ANNOTATION_PR_NUMBER
604+
590605
- name: Checkout
591606
uses: actions/checkout@v5
592607
with:

0 commit comments

Comments
 (0)