Skip to content

Commit 916eb56

Browse files
committed
Upload pr number in lib.yml
1 parent 1728d3a commit 916eb56

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/lib.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,21 @@ jobs:
121121
git add ${{ env.RESULT_LIBRARY_TEST_FILE }}
122122
git commit -m "Generated External Libraries Test Results"
123123
git push origin HEAD:gh-pages
124+
125+
#Upload PR number as artifact
126+
upload-pr-number:
127+
name: Upload PR number
128+
if: github.event_name == 'pull_request'
129+
runs-on: ubuntu-latest
130+
steps:
131+
- name: Save the PR number in an artifact
132+
shell: bash
133+
env:
134+
PR_NUM: ${{ github.event.number }}
135+
run: echo $PR_NUM > pr_num.txt
136+
- name: Upload PR number
137+
uses: actions/upload-artifact@v4
138+
with:
139+
name: pr_number
140+
path: ./pr_num.txt
141+
overwrite: true

0 commit comments

Comments
 (0)