From be8665af4d5dcd015ad690a0284f0bf6b2fd7037 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 30 Mar 2022 08:02:34 -0400 Subject: [PATCH] Fix coverage diffs for PRs that aren't up to date, take 2 (#8188) --- .github/workflows/test_coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index 6eb4d883bd..e01fd6ebcc 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -16,7 +16,7 @@ jobs: # If this is a pull request, make sure we check out its head rather than the # automatically generated merge commit, so that the coverage diff excludes # unrelated changes in the base branch - ref: ${{ github.event.type == 'PullRequestEvent' && github.event.pull_request.head.sha || '' }} + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }} - name: Yarn cache uses: c-hive/gha-yarn-cache@v2