Skip to content

Commit

Permalink
github: prevent parallel runs of gh-pages update
Browse files Browse the repository at this point in the history
Ensure sequential updates to the gh-pages branch. Otherwise, if parallel
jobs are triggered, onnly one (the first to complete) will succeed and
the others will fail with git push error (because the tip of the
gh-pages has moved and their commit doesn't apply anymore).
  • Loading branch information
marquiz committed Sep 15, 2023
1 parent ff1a212 commit ef3ad8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- v[0-9]+.[0-9]+.[0-9]+
release:
types: [published]

concurrency:
group: ${{ github.workflow }}

jobs:
build:
name: Update gh-pages
Expand Down

0 comments on commit ef3ad8f

Please sign in to comment.