Skip to content

Commit 297e6dd

Browse files
fix(ci): have CI record PR numbers (ethereum-optimism#201)
Has CI record PR numbers in artifacts. For whatever reason, GitHub does not make it easy to figure out which PR triggered a given workflow. Recording the PR number as an artifact is an easy hack that makes it possible for external bots to access this information.
1 parent bf1d49a commit 297e6dd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/validate.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
- name: Install dependencies
3737
run: yarn --frozen-lockfile
3838

39+
- name: Save PR number
40+
run: echo ${{ github.event.number }} > pr.txt
41+
3942
- name: Get changed files
4043
id: changed-files
4144
uses: tj-actions/changed-files@v29
@@ -54,5 +57,6 @@ jobs:
5457
with:
5558
name: logs-artifact
5659
path: |
57-
err.out
58-
std.out
60+
pr.txt
61+
err.txt
62+
std.txt

0 commit comments

Comments
 (0)