Skip to content

Commit

Permalink
Cancel concurrent CI runs for branches other than main (#300)
Browse files Browse the repository at this point in the history
Closes #298
  • Loading branch information
kscharan authored Aug 12, 2023
1 parent d577c81 commit b8f5482
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/run-checks-github-runners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ env:
# Can't use ${{ env.REGISTRY }} here, but would like to, so that we' don't
# repeat ghcr.io.
IMAGE_TAG: ghcr.io/${{ github.repository }}:sha-${{ github.sha }}

concurrency:
# Cancel in-progress runs for branches other than main.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
# Job which cleans up GitHub Actions workspace. This is only needed when
Expand Down

0 comments on commit b8f5482

Please sign in to comment.