Skip to content

Commit c4e7add

Browse files
committed
fix(ci): set release mode: replace to make reruns idempotent
Without this, a workflow rerun against an existing release aborts after uploading the first asset with: 422 Validation Failed [{Resource:ReleaseAsset Field:name Code:already_exists Message:}] The current tag v2.22.3-pulumi.alpha hit this after we rotated the tag to pick up the git identity fix for tag_go_sdk (de510be). With mode: replace, goreleaser deletes the existing asset before uploading, so tag rotations, manual reruns, and concurrent race recovery all become idempotent. Validated with goreleaser check v2.15.4.
1 parent de510be commit c4e7add

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pulumi/.goreleaser.pulumi.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ checksum:
6161

6262
release:
6363
draft: false
64+
# Replace existing assets on conflict instead of failing with 422
65+
# already_exists. Makes tag rotations and manual workflow re-runs
66+
# idempotent — without this, a rerun against an existing release
67+
# aborts after uploading the first asset (see run on 2026-04-24).
68+
mode: replace
6469
name_template: "{{ .Tag }}"
6570
header: |
6671
## {{ .Tag }}

0 commit comments

Comments
 (0)