diff --git a/.github/workflows/build-bundle.yml b/.github/workflows/build-bundle.yml index 3ab7900134..b31450ac60 100644 --- a/.github/workflows/build-bundle.yml +++ b/.github/workflows/build-bundle.yml @@ -17,8 +17,12 @@ on: required: true default: 'develop' +# Literal group name: under `workflow_call`, `github.workflow` resolves to the +# caller's workflow, which put this workflow and the other reusable one called +# by the same caller into a single shared group, and left a manual dispatch of +# the same ref in a group of its own, free to race on the same artifacts. concurrency: - group: ${{ github.workflow }}-${{ inputs.gh_ref }} + group: build-bundle-${{ inputs.gh_ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/build-develop.yml b/.github/workflows/build-develop.yml index b0edcb63cb..961ad1dca9 100644 --- a/.github/workflows/build-develop.yml +++ b/.github/workflows/build-develop.yml @@ -5,6 +5,10 @@ on: schedule: - cron: '16 5-20 * * 1-5' +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + jobs: build-bundle: uses: ./.github/workflows/build-bundle.yml diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 6fffaa4acd..32205c5385 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -16,8 +16,12 @@ on: required: true default: 'develop' +# Literal group name: under `workflow_call`, `github.workflow` resolves to the +# caller's workflow, which put this workflow and the other reusable one called +# by the same caller into a single shared group, and left a manual dispatch of +# the same ref in a group of its own, free to race on the same artifacts. concurrency: - group: ${{ github.workflow }}-${{ inputs.gh_ref }} + group: build-docker-${{ inputs.gh_ref }} cancel-in-progress: true env: diff --git a/.github/workflows/build-staging.yml b/.github/workflows/build-staging.yml index ec3003a4b2..1523e4d7df 100644 --- a/.github/workflows/build-staging.yml +++ b/.github/workflows/build-staging.yml @@ -5,6 +5,10 @@ on: schedule: - cron: '36 5-20 * * 1-5' +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + jobs: build-bundle: uses: ./.github/workflows/build-bundle.yml diff --git a/.github/workflows/build-tag.yml b/.github/workflows/build-tag.yml index 18f81d10f1..aa6a2b8357 100644 --- a/.github/workflows/build-tag.yml +++ b/.github/workflows/build-tag.yml @@ -6,6 +6,12 @@ on: tags: - '*' +# Keyed by ref and never cancelling: pushing 2.17.2 shortly after 2.17.2-RC1 +# must not abort the release already in flight. +concurrency: + group: ${{ github.workflow }}-${{ github.ref_name }} + cancel-in-progress: false + jobs: build-bundle: uses: ./.github/workflows/build-bundle.yml diff --git a/.github/workflows/build-tmp-tokens.yml b/.github/workflows/build-tmp-tokens.yml index 3c21981664..838a97a617 100644 --- a/.github/workflows/build-tmp-tokens.yml +++ b/.github/workflows/build-tmp-tokens.yml @@ -5,6 +5,10 @@ on: schedule: - cron: '46 5-20 * * 1-5' +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + jobs: build-bundle: uses: ./.github/workflows/build-bundle.yml