Skip to content

Commit

Permalink
Add concurrency key to publish/preview workflows (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm authored Oct 2, 2024
1 parent 364d361 commit 5255f44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- synchronize
- closed

concurrency:
group: docs

jobs:
build-and-preview:
if: github.event.action == 'opened' || github.event.action == 'synchronize'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- backport-v0.*
workflow_dispatch: # manual trigger for testing

concurrency:
group: docs
cancel-in-progress: true

jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5255f44

Please sign in to comment.