Skip to content

Commit

Permalink
ci: implement concurrency protection on workflows
Browse files Browse the repository at this point in the history
otherwise rendering and publishing could trip over itself as multiple
merges happen simultaneously
  • Loading branch information
mikehardy committed May 13, 2024
1 parent 77500cc commit cdb54e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
branches:
- "main"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
main:
name: "Publish docs.ankidroid.org"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/render_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
pull_request:
push:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
render_docs:
name: 'Render Docs'
Expand Down

0 comments on commit cdb54e4

Please sign in to comment.