From d5ed5bab89c5a76e28bd6d8e1f6246a45b163fa6 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 9 Nov 2021 12:59:19 -0500 Subject: [PATCH] Handle non-pull request runs (#42) github.head_ref is only available in PRs, so the build failed on main --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9ad4f9c..2b0be38 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -9,7 +9,7 @@ on: - 'main' concurrency: - group: ${{ github.head_ref }} + group: '${{ github.head_ref || github.base_ref }}' cancel-in-progress: true jobs: