Skip to content

Commit

Permalink
ci: abort deploy docs when a new commit is pushed to main
Browse files Browse the repository at this point in the history
docs.yaml pushes to branch gh-pages. When two or more PRs are merged in quick
succession, we only want the docs from the last one to get deployed.

Use the concurrency mechanism to cancel the earlier run in progress.
  • Loading branch information
joanise authored and roedoejet committed Sep 25, 2023
1 parent abbd2e7 commit df3ef59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
docs:
# Create latest docs
Expand Down

0 comments on commit df3ef59

Please sign in to comment.