From e30fd24aabcf94de0ce5fca8a331151ff34cc265 Mon Sep 17 00:00:00 2001 From: Jan Grodowski Date: Fri, 2 Feb 2024 17:36:13 +0100 Subject: [PATCH] Update github actions {{ github.event.pull_request.head.sha || github.sha }} determines the correct HEAD sha, avoiding virtual merge commit created for pull requests --- .github/workflows/ruby.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 8ea81b6..3403d53 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -38,5 +38,5 @@ jobs: run: | ruby -e "$(curl -s https://undercover-ci.com/uploader.rb)" -- \ --repo grodowski/undercover \ - --commit $GITHUB_SHA \ + --commit ${{ github.event.pull_request.head.sha || github.sha }} \ --lcov /home/runner/work/undercover/undercover/undercover.lcov