Fix website deploy race: concurrency group never matched on push events (#50806)

This commit is contained in:
Luke Heath
2026-08-07 14:30:51 -05:00
committed by GitHub
parent 4e6591e09d
commit fc97ff2e61
+5 -2
View File
@@ -11,9 +11,12 @@ on:
- 'schema/**'
- "ee/maintained-apps/outputs/**"
# This allows a subsequently queued workflow run to interrupt previous runs
# Serialize deploys per branch: a newer push cancels any in-progress deploy so an
# older build can never finish last and overwrite a newer release on Heroku.
# (github.head_ref is empty on push events, so keying on it gave every run a
# unique group and deploys raced.)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id}}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults: