mirror of
https://github.com/RGBCube/cstree
synced 2025-07-27 09:07:44 +00:00
[CI] Cancel in progress jobs (plus readonly permissions) (#65)
Co-authored-by: Domenic Quirl <DomenicQuirl@protonmail.com>
This commit is contained in:
parent
70e9f92d3e
commit
1babdb03ee
1 changed files with 9 additions and 0 deletions
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
|
@ -11,6 +11,15 @@ on:
|
|||
# Allows to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# If new code is pushed to a PR branch, then cancel in progress workflows for that PR. Ensures that
|
||||
# we don't waste CI time, and returns results quicker https://github.com/jonhoo/rust-ci-conf/pull/5
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
RUST_LOG: info
|
||||
RUST_BACKTRACE: 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue