Skip to content

Commit

Permalink
Upload PR number and base SHA as artifact
Browse files Browse the repository at this point in the history
For later use in configuring codecov
  • Loading branch information
johannaengland committed Jun 13, 2024
1 parent 3951b69 commit a050390
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,24 @@ jobs:
name: javascript-test-reports
path: |
reports/**/*
upload-pr-number-base-sha:
name: Save PR number and base SHA in artifact
runs-on: ubuntu-latest
if: ${{ github.event.number && always() }}
env:
PR_NUMBER: ${{ github.event.number }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
steps:
- name: Make PR number file
run: |
mkdir -p ./extra
echo $PR_NUMBER > ./extra/pr_number
- name: Make base SHA file
run: |
echo $BASE_SHA > ./extra/base_sha
- name: Upload PR number file and base SHA file
uses: actions/upload-artifact@v4
with:
name: extra
path: extra/

0 comments on commit a050390

Please sign in to comment.