Skip to content

Commit

Permalink
minor #45519 [GHA] Cancel running CI jobs when a PR is updated (nicol…
Browse files Browse the repository at this point in the history
…as-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[GHA] Cancel running CI jobs when a PR is updated

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Inspired by nodejs/node#42017

Doc ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value

Commits
-------

786d79e [GHA] Cancel running CI jobs when a PR is updated
  • Loading branch information
nicolas-grekas committed Feb 24, 2022
2 parents 9a22b37 + 786d79e commit 6bf91b3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/integration-tests.yml
Expand Up @@ -8,6 +8,10 @@ defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:

tests:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/intl-data-tests.yml
Expand Up @@ -12,6 +12,10 @@ defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
tests:
name: Tests
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/phpunit-bridge.yml
Expand Up @@ -12,6 +12,10 @@ defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
name: Lint
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/psalm.yml
Expand Up @@ -7,6 +7,10 @@ defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
psalm:
name: Psalm
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit-tests.yml
Expand Up @@ -8,6 +8,10 @@ defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:

tests:
Expand Down

0 comments on commit 6bf91b3

Please sign in to comment.