Skip to content

Commit

Permalink
ci: Select the correct sha for the test results when running from a p…
Browse files Browse the repository at this point in the history
…ost-merge action.
  • Loading branch information
jaqx0r committed Jul 18, 2022
1 parent 25b734d commit b8131c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ jobs:
mkdir -p test-results
# Don't use GITHUB_SHA as we need the head of the branch, not the
# secret merge commit of the PR itself. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#pull-request-event-pull_request
echo ${{ github.event.pull_request.head.sha }} > test-results/sha-number
if [[ ${{ github.event_name }} == 'pull_request' ]]; then
echo ${{ github.event.pull_request.head.sha }} > test-results/sha-number
else
echo ${{ github.sha }} > test-result/sha-number
fi
make --debug junit-regtest TESTCOVERPROFILE=coverprofile
shell: bash
- uses: codecov/codecov-action@v3
if: always()
with:
Expand Down

0 comments on commit b8131c8

Please sign in to comment.