Description
Several workflows cancel superseded runs via a concurrency group (js-lint, php-lint, php-test-plugins, plugin-check, codeql, props-bot). The following do not, so pushing multiple times to a PR runs duplicate jobs to completion:
.github/workflows/e2e-test.yml
.github/workflows/spell-check.yml
.github/workflows/add-pr-labels.yml
Impact
Wasted Actions minutes and slower feedback when a PR is updated in quick succession.
Proposed fix
Add the same block already used elsewhere in the repo:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true
Location
.github/workflows/e2e-test.yml
.github/workflows/spell-check.yml
.github/workflows/add-pr-labels.yml
Acceptance criteria
Description
Several workflows cancel superseded runs via a
concurrencygroup (js-lint,php-lint,php-test-plugins,plugin-check,codeql,props-bot). The following do not, so pushing multiple times to a PR runs duplicate jobs to completion:.github/workflows/e2e-test.yml.github/workflows/spell-check.yml.github/workflows/add-pr-labels.ymlImpact
Wasted Actions minutes and slower feedback when a PR is updated in quick succession.
Proposed fix
Add the same block already used elsewhere in the repo:
Location
.github/workflows/e2e-test.yml.github/workflows/spell-check.yml.github/workflows/add-pr-labels.ymlAcceptance criteria
concurrencygroup withcancel-in-progress: true.