Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

Add replace option to release workflow

Martin Vogel7d1f56836e49
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 23ff59514..821138db9 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -11,6 +11,11 @@ on:
description: "Release notes (optional — auto-generated from commits if empty)"
required: false
type: string
+ replace:
+ description: "Replace existing release if it exists"
+ required: false
+ type: boolean
+ default: false
permissions:
contents: write
@@ -128,10 +133,16 @@ jobs:
- name: Generate checksums
run: sha256sum *.tar.gz *.zip > checksums.txt
+ - name: Delete existing release
+ if: ${{ inputs.replace }}
+ run: gh release delete "${{ inputs.version }}" --yes --cleanup-tag || true
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
- name: Create tag
run: |
- git tag ${{ inputs.version }}
- git push origin ${{ inputs.version }}
+ git tag -f ${{ inputs.version }}
+ git push origin ${{ inputs.version }} --force
- uses: softprops/action-gh-release@v2
with: