Skip to content

Commit 7a9d6ca

Browse files
authored
ci.yml: add automatic cancellation of current builds if new commits are pushed, and tighten permissions (#1043)
1 parent 6e15c6c commit 7a9d6ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ on:
1414
paths-ignore:
1515
- '**.md'
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
19+
cancel-in-progress: true
20+
21+
permissions:
22+
contents: read # to fetch code (actions/checkout)
23+
1724
env:
1825
CCACHE_BASEDIR: ${{ github.workspace }}
1926
CCACHE_DIR: ${{ github.workspace }}/.ccache

0 commit comments

Comments
 (0)