Skip to content

Commit

Permalink
gh-211: cancel intermediate builds (#212)
Browse files Browse the repository at this point in the history
It is a good practice to cancel intermediate builds (old builds when a
new build on the same branch/PR starts) to save CI resources. The
practice is also more environment friendly πŸ˜„

Closes: #211
Reviewed-by: Nicolas Tessore
  • Loading branch information
Saransh-cpp authored Sep 16, 2024
1 parent 84a74ac commit a1f0feb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
branches:
- main

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:

style:
Expand Down

0 comments on commit a1f0feb

Please sign in to comment.