Skip to content

Commit

Permalink
CI: Improve efficiency on GHA
Browse files Browse the repository at this point in the history
When pushing to the same branch on a PR, cancel running jobs of the same
kind.
  • Loading branch information
amotl committed Nov 28, 2022
1 parent ad72064 commit 87e8c04
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]

# Allow job to be triggered manually.
workflow_dispatch:

# Cancel in-progress jobs when pushing to the same branch.
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}

jobs:

tests-backend:
Expand Down

0 comments on commit 87e8c04

Please sign in to comment.