Skip to content

Commit

Permalink
Add GitHub Actions councurrency limits to workflows that git push
Browse files Browse the repository at this point in the history
Occasionally when multiple PRs are merged to trunk quickly, the rustdoc
workflow fails due to a race between generating a new commit to push and
another workflow instance completing a push.

Limit workflow concurrency to one concurrent run per branch to ensure
pushes to trunk are processed serially.

https://github.blog/changelog/2021-04-19-github-actions-limit-workflow-run-or-job-concurrency/
  • Loading branch information
lopopolo committed Sep 10, 2021
1 parent 3e3cd0d commit 14a59b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rustdoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ name: Documentation
- trunk
schedule:
- cron: "0 0 * * WED"
concurrency:
group: docs-${{ github.head_ref }}
jobs:
rustdoc:
name: Build Rust API docs
Expand Down

0 comments on commit 14a59b1

Please sign in to comment.