From 1076f6f212407adff44f42ec25796022ef0ce814 Mon Sep 17 00:00:00 2001 From: pasichDev Date: Tue, 1 Sep 2026 15:51:30 +0300 Subject: [PATCH] fix: validate release tag against fetched master --- .github/workflows/ci-cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 29791f1e..b3017487 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -22,7 +22,7 @@ jobs: - name: Validate release tag run: | git fetch origin master --no-tags - git merge-base --is-ancestor "$GITHUB_SHA" origin/master + git merge-base --is-ancestor "$GITHUB_SHA" FETCH_HEAD VERSION_CODE=$(sed -nE 's/^def appVersionCode = ([0-9]+)$/\1/p' app/build.gradle) VERSION_TEMPLATE=$(sed -nE 's/^def appVersionName = "([^"]+)"$/\1/p' app/build.gradle) VERSION=${VERSION_TEMPLATE//\$\{appVersionCode\}/$VERSION_CODE}