Skip to content

Commit

Permalink
[CI] Cancel in progress jobs (plus readonly permissions) (#65)
Browse files Browse the repository at this point in the history
Co-authored-by: Domenic Quirl <DomenicQuirl@protonmail.com>
  • Loading branch information
domenicquirl and Domenic Quirl authored Aug 20, 2024
1 parent 70e9f92 commit 1babdb0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,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
Expand Down

0 comments on commit 1babdb0

Please sign in to comment.