Skip to content

Commit 5e11ae4

Browse files
committed
ci: allow RLA to pick the right PR number
1 parent 7138410 commit 5e11ae4

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

Diff for: .github/workflows/ci.yml

+20
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ jobs:
6363
with:
6464
github_token: "${{ secrets.github_token }}"
6565
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'"
66+
- name: configure the PR in which the error message will be posted
67+
run: "echo \"[CI_PR_NUMBER=$num]\""
68+
env:
69+
num: "${{ github.event.number }}"
70+
if: "success() && !env.SKIP_JOBS && github.event_name == 'pull_request'"
6671
- name: add extra environment variables
6772
run: src/ci/scripts/setup-environment.sh
6873
env:
@@ -162,6 +167,11 @@ jobs:
162167
with:
163168
github_token: "${{ secrets.github_token }}"
164169
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'"
170+
- name: configure the PR in which the error message will be posted
171+
run: "echo \"[CI_PR_NUMBER=$num]\""
172+
env:
173+
num: "${{ github.event.number }}"
174+
if: "success() && !env.SKIP_JOBS && github.event_name == 'pull_request'"
165175
- name: add extra environment variables
166176
run: src/ci/scripts/setup-environment.sh
167177
env:
@@ -479,6 +489,11 @@ jobs:
479489
with:
480490
github_token: "${{ secrets.github_token }}"
481491
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'"
492+
- name: configure the PR in which the error message will be posted
493+
run: "echo \"[CI_PR_NUMBER=$num]\""
494+
env:
495+
num: "${{ github.event.number }}"
496+
if: "success() && !env.SKIP_JOBS && github.event_name == 'pull_request'"
482497
- name: add extra environment variables
483498
run: src/ci/scripts/setup-environment.sh
484499
env:
@@ -604,6 +619,11 @@ jobs:
604619
with:
605620
github_token: "${{ secrets.github_token }}"
606621
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'"
622+
- name: configure the PR in which the error message will be posted
623+
run: "echo \"[CI_PR_NUMBER=$num]\""
624+
env:
625+
num: "${{ github.event.number }}"
626+
if: "success() && !env.SKIP_JOBS && github.event_name == 'pull_request'"
607627
- name: add extra environment variables
608628
run: src/ci/scripts/setup-environment.sh
609629
env:

Diff for: src/ci/github-actions/ci.yml

+9
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ x--expand-yaml-anchors--remove:
9292
if: success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'
9393
<<: *step
9494

95+
# Rust Log Analyzer can't currently detect the PR number of a GitHub
96+
# Actions build on its own, so a hint in the log message is needed to
97+
# point it in the right direction.
98+
- name: configure the PR in which the error message will be posted
99+
run: echo "[CI_PR_NUMBER=$num]"
100+
env:
101+
num: ${{ github.event.number }}
102+
if: success() && !env.SKIP_JOBS && github.event_name == 'pull_request'
103+
95104
- name: add extra environment variables
96105
run: src/ci/scripts/setup-environment.sh
97106
env:

0 commit comments

Comments
 (0)