Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(release): stop a release cut early when its version is already tagged (#795)

Ruben Lütke8b81539c41d6
diff --git a/.github/workflows/release-cut.yml b/.github/workflows/release-cut.yml
index 27e6554346..305d983f44 100644
--- a/.github/workflows/release-cut.yml
+++ b/.github/workflows/release-cut.yml
@@ -121,6 +121,14 @@ jobs:
run: |
if [ -n "$VERSION" ]; then arg=(--version "$VERSION"); else arg=(--bump "$BUMP"); fi
new="$(python scripts/ci/cut_release.py "${arg[@]}" --notes-out "$RUNNER_TEMP/notes.md" | tail -1)"
+ # A second cut dispatched before the first one landed starts from the
+ # old main and computes the same version again. Stop before it opens
+ # a candidate PR and lands an empty duplicate version commit.
+ git fetch --quiet --tags origin
+ if git show-ref --verify --quiet "refs/tags/v$new"; then
+ echo "::error::v$new is already tagged. main moved after this run was dispatched; start a new cut from current main."
+ exit 1
+ fi
echo "version=$new" >> "$GITHUB_OUTPUT"
git diff --stat
- name: Mint a release bot token for the candidate