Skip to content

Commit

Permalink
🚦 Limit concurrency for promotion
Browse files Browse the repository at this point in the history
The promotion changes currently have the ability to go in out-of-order
which would result in an unintuitive failure. This adds a concurrency
group to ensure that only 1 can ever run at any given time.
  • Loading branch information
bitwizeshift committed Dec 12, 2023
1 parent 21b3b3d commit bd1dfc6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/promote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ on:
push:
branches: [develop]

# Allow only 1 promotion to occur at any given time, to prevent the possibility
# of multiple changes running at the same time and going in out-of-order.
concurrency:
group: promote-master
cancel-in-progress: true

jobs:
verify:
name: Verify build integrity
Expand Down Expand Up @@ -44,7 +50,7 @@ jobs:
sha1=$(git rev-parse --short HEAD)
echo '# ⏩ Accepted changes from `develop` into `master`' >> "${GITHUB_STEP_SUMMARY}"
echo '' >> "${GITHUB_STEP_SUMMARY}"
echo '${sha1} is the new HEAD of `master`' >> "${GITHUB_STEP_SUMMARY}"
echo '${{github.sha}} is the new HEAD of `master`' >> "${GITHUB_STEP_SUMMARY}"
echo '' >> "${GITHUB_STEP_SUMMARY}"
echo '## Summary' >> "${GITHUB_STEP_SUMMARY}"
echo '' >> "${GITHUB_STEP_SUMMARY}"
Expand Down

0 comments on commit bd1dfc6

Please sign in to comment.