From d5323c98d83b912e7497fb7b075cbaa46baa39d0 Mon Sep 17 00:00:00 2001 From: ismay Date: Wed, 14 Aug 2024 12:49:36 +0200 Subject: [PATCH] ci: fix workflow concurrency --- .github/workflows/test-and-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: