diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af0035f..25c4579 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,10 +14,8 @@ on: permissions: contents: read -# Cancel a superseded PR run; let push and schedule runs finish so a -# default-branch result is never dropped. concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2403f8..457a13b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,10 +8,8 @@ on: permissions: contents: read -# Cancel a superseded PR run; let push and schedule runs finish so a -# default-branch result is never dropped. concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 123ea37..c9c772c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,10 +11,8 @@ on: permissions: contents: read -# Cancel a superseded PR run; let push and schedule runs finish so a -# default-branch result is never dropped. concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: