Skip to content

Commit

Permalink
Demo correct commit SHA incl. github action merge commit
Browse files Browse the repository at this point in the history
GitHub will create multiple SHAs for pull request workflows:
https://www.kenmuse.com/blog/the-many-shas-of-a-github-pull-request/
  • Loading branch information
grodowski committed Feb 2, 2024
1 parent 86a7b60 commit aea765a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
bundle exec rails test
ruby -e "$(curl -s https://undercover-ci.com/uploader.rb)" -- \
--repo twitchy-tortoise/undercover-test \
--commit $GITHUB_SHA \
--commit {{ github.event.pull_request.head.sha || github.sha }} \
--lcov coverage/lcov/undercover-test.lcov

0 comments on commit aea765a

Please sign in to comment.