diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c441e097665..3611a3d11e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: types: [opened, reopened, synchronize, ready_for_review, converted_to_draft] concurrency: - group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: ${{ github.event_name == 'pull_request' && format('ci-pr-{0}', github.event.pull_request.number) || format('ci-push-{0}', github.run_id) }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} env: diff --git a/.github/workflows/install-smoke.yml b/.github/workflows/install-smoke.yml index f257eda4efc..71896bbcdfc 100644 --- a/.github/workflows/install-smoke.yml +++ b/.github/workflows/install-smoke.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: concurrency: - group: install-smoke-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: ${{ github.event_name == 'pull_request' && format('install-smoke-pr-{0}', github.event.pull_request.number) || format('install-smoke-push-{0}', github.run_id) }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} env: