Skip to content

Commit

Permalink
Add concurrency option to cancel a workflow if a new instance starts …
Browse files Browse the repository at this point in the history
…on the same branch
  • Loading branch information
Thomas Fish committed Oct 2, 2024
1 parent 7da8f15 commit 75f1338
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/generate_README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:

jobs:
make-README:
concurrency:
group: make-README -- ${{ github.workflow }} -- ${{ github.ref_name }}
cancel-in-progress: true
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/generate_help_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:

jobs:
generate-help-docs:
concurrency:
group: generate-help-docs -- ${{ github.workflow }} -- ${{ github.ref_name }}
cancel-in-progress: true
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit 75f1338

Please sign in to comment.