Skip to content

Commit

Permalink
doc: add concurrency to example workflows
Browse files Browse the repository at this point in the history
The concurrency key is used to prevent multiple workflows from running at the same time

Partially fixes #119
  • Loading branch information
jamacku committed Feb 19, 2024
1 parent 2e246ab commit ff98d91
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ on:
types:
- created
# The concurrency key is used to prevent multiple workflows from running at the same time
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -129,6 +134,11 @@ on:
branches:
- main
# The concurrency key is used to prevent multiple workflows from running at the same time
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ff98d91

Please sign in to comment.