Skip to content

ci: fire release workflow once per merge#82

Merged
ksandell merged 1 commit into
developfrom
ci/release-single-trigger
May 21, 2026
Merged

ci: fire release workflow once per merge#82
ksandell merged 1 commit into
developfrom
ci/release-single-trigger

Conversation

@ksandell

Copy link
Copy Markdown
Contributor

Summary

The "Create Release" workflow had both a push: [main] and a pull_request: closed → [main] trigger. Every PR merge to main therefore fired it twice — both runs raced to create the same version tag, one succeeding and the other failing with tag already exists (observed on the 0.0.41 release).

A single push: [main] trigger already covers both PR merges and direct pushes. This drops the redundant pull_request trigger and the now-trivial if: github.event_name == 'push' || ... guard.

Effect

One workflow run per release, no spurious red run. No change to release behaviour otherwise.

Note

Pure CI cleanup — no version bump. Ships with the next release.

Test plan

  • Next release merge to main produces exactly one "Create Release" run, succeeding

The release workflow had both a push:[main] and a pull_request:closed
trigger, so every PR merge to main fired it twice. Both runs raced to
create the same version tag — one succeeded, the other failed noisily
with "tag already exists". A single push:[main] trigger already covers
both PR merges and direct pushes, so drop the redundant pull_request
trigger and the now-trivial event-type guard.
@ksandell ksandell merged commit 3124789 into develop May 21, 2026
4 checks passed
@ksandell ksandell deleted the ci/release-single-trigger branch May 21, 2026 09:56
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