Skip to content

Commit

Permalink
Cancel in-progress jobs for new pushes (#79)
Browse files Browse the repository at this point in the history
Signed-off-by: Ludvig Liljenberg <[email protected]>
  • Loading branch information
ludfjig authored Nov 22, 2024
1 parent 30eb878 commit 6d4c3a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ValidatePullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
branches: [main, "release/**"]
merge_group:

# Cancels old running job if a new one is triggered (e.g. by a push onto the same branch).
# This will cancel dependent jobs as well, such as dep_rust and dep_fuzzing
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -42,6 +48,7 @@ jobs:
secrets: inherit
with:
docs_only: ${{needs.docs-pr.outputs.docs-only}}

fuzzing:
needs:
- docs-pr
Expand All @@ -50,6 +57,7 @@ jobs:
max_total_time: 300 # 5 minutes in seconds
docs_only: ${{needs.docs-pr.outputs.docs-only}}
secrets: inherit

spelling:
name: spell check with typos
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6d4c3a8

Please sign in to comment.