From dcb271b9989e05d59ac6dc56b004c7a0f8292c4e Mon Sep 17 00:00:00 2001 From: Todd Short Date: Wed, 27 May 2026 13:44:10 -0400 Subject: [PATCH] fix: use gh release upload instead of softprops/action-gh-release softprops/action-gh-release@v3 has deduplication logic that picks the wrong draft release when multiple drafts exist for the same tag (e.g. when a tag is moved). This caused crds.yaml, olm.yaml, and install.sh to be uploaded to a stale draft from a prior failed run rather than the current GoReleaser-created release, as seen in v0.43.0. Replace it with 'gh release upload', which uploads directly to the release associated with the tag without creating any new release objects. --clobber makes reruns safe. Assisted-by: Claude Signed-off-by: Todd Short --- .github/workflows/goreleaser.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 7ac330da72..445a21de55 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -57,13 +57,12 @@ jobs: run: make release RELEASE_VERSION=${{ env.IMAGE_TAG }} IMAGE_REPO=quay.io/operator-framework/olm - name: Update release artifacts with rendered Kubernetes release manifests - uses: softprops/action-gh-release@v3 if: startsWith(github.ref, 'refs/tags') - with: - name: ${{ env.IMAGE_TAG }} - files: | - deploy/upstream/quickstart/crds.yaml - deploy/upstream/quickstart/olm.yaml - deploy/upstream/quickstart/install.sh - draft: true - token: ${{ github.token }} + run: | + gh release upload "${{ env.IMAGE_TAG }}" \ + deploy/upstream/quickstart/crds.yaml \ + deploy/upstream/quickstart/olm.yaml \ + deploy/upstream/quickstart/install.sh \ + --clobber + env: + GH_TOKEN: ${{ github.token }}