Skip to content

fix: gate deploy cancellation to non-main refs - #222

Merged
nemolize merged 1 commit into
mainfrom
fix/deploy-workflow-propagation
Jul 27, 2026
Merged

fix: gate deploy cancellation to non-main refs#222
nemolize merged 1 commit into
mainfrom
fix/deploy-workflow-propagation

Conversation

@nemolize

Copy link
Copy Markdown
Owner

Summary

Propagates a deploy-workflow fix from the web-app-template this repository was created from. Tracked in nemolize/web-app-template#359; the fix itself is nemolize/web-app-template#358.

Changes

cancel-in-progress could cancel an in-flight production deploy

cancel-in-progress: true applied to main, so a rapid second push could cancel a deploy partway through. A cancelled deploy is not a no-op: the upload and the activation are separate steps, so stopping between them can leave a state that matches no commit, and nothing re-runs to correct it.

This workflow only triggers on main, so the effect is to turn cancellation off. The expression is written the same way as in the other repositories receiving this fix, so the workflows stay comparable and it stays correct if a pull_request trigger is added later.

The workflow-level pull-requests: write fix in the tracking issue does not apply here — this workflow does not request that permission.

Impact

CI/CD configuration only. No application code changes. Consecutive pushes to main now queue rather than cancel, so the last push still wins — it just waits instead of interrupting.

Test plan

  • actionlint passes

`cancel-in-progress: true` applied to `main`, so a rapid second push
could cancel an in-flight production deploy. A cancelled deploy is not a
no-op: the upload and the activation are separate steps, so stopping
between them can leave a state matching no commit.

This workflow only triggers on `main`, so the effect is to turn
cancellation off. The expression is written as in the other repositories
receiving this fix, keeping the workflows comparable and staying correct
if a `pull_request` trigger is added later.

Propagated from nemolize/web-app-template#358.
Tracked in nemolize/web-app-template#359.
@nemolize
nemolize marked this pull request as ready for review July 27, 2026 13:55
@nemolize
nemolize merged commit 912ddae into main Jul 27, 2026
4 checks passed
@nemolize
nemolize deleted the fix/deploy-workflow-propagation branch July 27, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant