Skip to content

Commit

Permalink
build: serialize concurrent publish runs to fix google error
Browse files Browse the repository at this point in the history
google can only handle one in-flight edit at a time, so only one
publish at a time. this allows concurrent publish workflow starts
(say on branch and main) and serializes them to work with google

Fixes ankidroid#15743
  • Loading branch information
mikehardy committed Dec 4, 2024
1 parent 882e535 commit d68c544
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ on:
required: false
type: string


# We want concurrency control to allow multiple runs, but serially
# Otherwise if you run two publishes that upload to google at same time
# (for instance on a release branch for beta, and main for alpha), google
# will error as it can only handle one edit in publish account at once
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
release_app:
name: 'Release App'
Expand Down

0 comments on commit d68c544

Please sign in to comment.