From 3321331ea330918870e555fe4aca9eca32621fa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bj=C3=B6rkert?= Date: Sun, 21 Jun 2026 23:04:13 +0200 Subject: [PATCH] release.sh: drop [skip ci] from version bump; allow manual tag_on_main The [skip ci] on the version-bump commit skipped the required SwiftFormat lint check (blocking the release PRs) and the tag_on_main workflow (no auto-tag). Remove it; auto_version_dev already prevents re-bumping via its Config.xcconfig guard. Also add a workflow_dispatch trigger to tag_on_main so the tag can be created manually if a run is ever skipped. --- .github/workflows/tag_on_main.yml | 4 ++++ release.sh | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tag_on_main.yml b/.github/workflows/tag_on_main.yml index 4fa3d1714..388a2b537 100644 --- a/.github/workflows/tag_on_main.yml +++ b/.github/workflows/tag_on_main.yml @@ -17,6 +17,10 @@ on: push: branches: - main + # Manual fallback: if the push-triggered run was ever skipped (e.g. a commit + # with [skip ci] landing on main), the tag can be created by dispatching this + # workflow against main. It is idempotent — it skips if the tag already exists. + workflow_dispatch: jobs: tag: diff --git a/release.sh b/release.sh index 3ba67c2fb..b5dee1d9d 100755 --- a/release.sh +++ b/release.sh @@ -104,7 +104,10 @@ echo_run git switch -c "$RELEASE_BRANCH" # --- bump version on the release branch ---- sed -i '' "s/${MARKETING_KEY}[[:space:]]*=.*/${MARKETING_KEY} = ${new_ver}/" "$VERSION_FILE" echo_run git diff "$VERSION_FILE"; pause -echo_run git commit -m "update version to ${new_ver} [skip ci]" "$VERSION_FILE" +# No [skip ci] here on purpose: it would skip the required SwiftFormat lint check +# (leaving the release PRs blocked) and the tag_on_main workflow (no auto-tag). +# auto_version_dev already avoids re-bumping via its "Config.xcconfig changed" guard. +echo_run git commit -m "update version to ${new_ver}" "$VERSION_FILE" echo "💻 Build & test release branch now."; pause queue_push push origin "$RELEASE_BRANCH"