Skip to content

Commit

Permalink
Cancel CI Runs if PRs get new changes
Browse files Browse the repository at this point in the history
In case a PR gets a new commit or something is force pushed,
we want the currently running actions to abort as they are meaningless
anyway and just eat up capacity.
  • Loading branch information
FloThinksPi committed Aug 23, 2023
1 parent 773e3cf commit 2842022
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docs_test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Docs Tests

concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.workflow }}'
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Unit Tests

concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.workflow }}'
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
Expand Down

0 comments on commit 2842022

Please sign in to comment.