Skip to content

ci: Fix CLI release workflow trigger race#2313

Merged
mmlb merged 1 commit into
developfrom
push-vwmrxpoypywy
Jul 23, 2026
Merged

ci: Fix CLI release workflow trigger race#2313
mmlb merged 1 commit into
developfrom
push-vwmrxpoypywy

Conversation

@mmlb

@mmlb mmlb commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Sometimes the cli release workflow trigger fails when running amd64 builds. For example https://github.com/supabase/postgres/actions/runs/30005331013/job/89199985385 fails with the following message:

could not create workflow dispatch event: HTTP 422: No ref found for: v17.6.1.154-cli (https://api.github.com/repos/supabase/postgres/actions/workflows/229793425/dispatches)

And it looks like that is a race where amd64 got to this stage before arm64 was able to create the tag.

What is the new behavior?

I've combined both tag and trigger release workflow into one step since they are pretty tightly coupled and also meant to be done just once.

The trigger wasn't being gated the same way the tag creation was which
looks like was causing issues when amd64 ran before arm64. In that case
we would not create a tag but still try to trigger the release workflow
which would fail on missing tag.

I chose to combine both steps into one instead of fixing the `if:`
because there's no benefit to separating them out like they were.
@mmlb
mmlb requested review from a team as code owners July 23, 2026 19:34
@mmlb
mmlb added this pull request to the merge queue Jul 23, 2026
Merged via the queue into develop with commit 67b6f97 Jul 23, 2026
42 checks passed
@mmlb
mmlb deleted the push-vwmrxpoypywy branch July 23, 2026 21:07
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.

2 participants