From 119c8d74b452e0c8e121235e55b0e3c8ede83e41 Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Wed, 18 Mar 2026 10:27:36 -0600 Subject: [PATCH] fix(ci): skip GitHub release creation when tag already exists Multiple pipeline runs for the same base version produce identical release tags, causing E422. Check if release exists before creating. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/pipeline.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index d18ac7e1e..292017938 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -164,10 +164,15 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create "v${{ steps.base-version.outputs.version }}" \ - --title "v${{ steps.base-version.outputs.version }}" \ - --generate-notes \ - --latest + TAG="v${{ steps.base-version.outputs.version }}" + if gh release view "$TAG" >/dev/null 2>&1; then + echo "Release $TAG already exists — skipping" + else + gh release create "$TAG" \ + --title "$TAG" \ + --generate-notes \ + --latest + fi update-builder: name: Update CI Builder Image