Skip to content

Commit

Permalink
ci.yml: add automatic cancellation of current builds if new commits a…
Browse files Browse the repository at this point in the history
…re pushed, and tighten permissions (#1043)
  • Loading branch information
rouault authored Feb 7, 2024
1 parent 6e15c6c commit 7a9d6ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ on:
paths-ignore:
- '**.md'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read # to fetch code (actions/checkout)

env:
CCACHE_BASEDIR: ${{ github.workspace }}
CCACHE_DIR: ${{ github.workspace }}/.ccache
Expand Down

0 comments on commit 7a9d6ca

Please sign in to comment.