Skip to content

Commit

Permalink
CI: cancel CI jobs of previous commits on the same branch
Browse files Browse the repository at this point in the history
  • Loading branch information
BacLuc committed Nov 11, 2023
1 parent fca653d commit 02f6b3c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
env:
USER_ID: 1001

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
api-check-dependencies:
name: 'Api Platform check dependencies'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/continuous-integration-optional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
merge_group:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
api-validate-composer-lock:
name: 'Validate Api Platform composer.lock'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
api-cs-check:
name: 'Lint: API (php-cs-fixer)'
Expand Down

0 comments on commit 02f6b3c

Please sign in to comment.