1
Fork 0
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:
DQ 2024-08-20 20:37:16 +02:00 committed by GitHub
parent 70e9f92d3e
commit 1babdb03ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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