Skip to content

Commit

Permalink
ci: fix PR sha
Browse files Browse the repository at this point in the history
  • Loading branch information
rndquu committed Jul 4, 2023
1 parent 352902b commit 762cd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
env:
EVENT_NAME: ${{github.event_name}}
PR_NUMBER: ${{ github.event.number }}
SHA: ${{github.sha}}
SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
run: |
echo "event_name=$EVENT_NAME,pr_number=$PR_NUMBER,sha=$SHA"
mkdir -p ./pr
Expand Down

0 comments on commit 762cd61

Please sign in to comment.