Skip to content

Commit

Permalink
[GHA] Cancel running CI jobs when a PR is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Feb 23, 2022
1 parent 46408f0 commit 786d79e
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 786d79e

Please sign in to comment.