diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index d3330dcd..18e845d6 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -5,7 +5,7 @@ on: push concurrency: group: ${{ github.workflow }}-${{ github.ref }} # Cancel previous runs if not on a release branch - cancel-in-progress: ${{ !contains(github.ref, fromJSON('["master", "main"]')) }} + cancel-in-progress: ${{ !contains(fromJSON('["refs/heads/master", "ref/heads/main"]'), github.ref) }} jobs: lint-commits: