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 16afa49 commit e00763c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
bundle exec rails db:migrate
bundle exec rails test
ruby -e "$(curl -s https://undercover-ci.com/uploader.rb)" -- \
--repo twitchy-tortoise/undercover-test \
--commit $GITHUB_SHA \
--lcov coverage/lcov/undercover-test.lcov
--repo twitchy-tortoise/undercover-test \
--commit {{ github.event.pull_request.head.sha || github.sha }} \
--lcov coverage/lcov/undercover-test.lcov

0 comments on commit e00763c

Please sign in to comment.