From ceb1494d28a3f520a6e7a1941115d6ce6af05feb Mon Sep 17 00:00:00 2001 From: Yury Saukou Date: Tue, 20 Oct 2026 15:10:05 +0400 Subject: [PATCH] fix(release): preserve tag-only production recovery --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 84d8dae..05fcc7d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: release_tag: - description: Existing immutable SDK tag to retry from main + description: Existing immutable SDK tag to retry from its sdk-recovery tag required: true type: string push: @@ -47,8 +47,9 @@ jobs: WORKFLOW_REF: ${{ github.ref }} run: | if [ "$RETRY" = true ]; then - test "$WORKFLOW_REF" = refs/heads/main [[ "$SDK_RELEASE_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] + test "$WORKFLOW_REF" = "refs/tags/sdk-recovery/$SDK_RELEASE_TAG" + git merge-base --is-ancestor "$GITHUB_WORKFLOW_SHA" origin/main test "$(git rev-parse "refs/tags/$SDK_RELEASE_TAG^{commit}")" = "$(git rev-parse HEAD)" git merge-base --is-ancestor HEAD origin/main fi