Skip to content

Commit

Permalink
Merge pull request #662 from google/windows-sha
Browse files Browse the repository at this point in the history
ci: Select the correct sha for the test results when running from a post-merge action.
  • Loading branch information
jaqx0r committed Jul 18, 2022
2 parents 25b734d + b8131c8 commit 89b462d
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 89b462d

Please sign in to comment.