Skip to content

Commit

Permalink
Merge pull request #719 from rndquu/ci/fix-pr-sha
Browse files Browse the repository at this point in the history
ci: fix PR sha
  • Loading branch information
rndquu committed Jul 4, 2023
2 parents 352902b + 762cd61 commit 360e8f1
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

1 comment on commit 360e8f1

@ubiquibot
Copy link

@ubiquibot ubiquibot bot commented on 360e8f1 Jul 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.