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.

Tag the dispatched sha in release-draft, not the checkout HEAD

Martin Vogel16dc384128c8
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index bec2ac6b9..d631dafe1 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -148,8 +148,13 @@ jobs:
- name: Create tag
env:
VERSION: ${{ inputs.version }}
+ # Tag the DISPATCHED sha, not the checkout HEAD: the artifacts were
+ # built from github.sha, and a commit pushed to main mid-run must not
+ # move the release tag. (A floating HEAD also broke the 0.8.0 release:
+ # HEAD had become a commit touching .github/workflows/, and the App
+ # token may not create refs pointing at workflow-modifying commits.)
run: |
- git tag -f "$VERSION"
+ git tag -f "$VERSION" "$GITHUB_SHA"
git push origin "$VERSION" --force
- uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v2