From a2513441abcbbf60f63e59c3693e78ec4741fae7 Mon Sep 17 00:00:00 2001 From: Alex Shevchuk Date: Tue, 19 Aug 2025 22:37:52 +0300 Subject: [PATCH] =?UTF-8?q?55=20=D1=8D=D1=82=D0=BE=20=D0=A1=D0=B0=D0=BD?= =?UTF-8?q?=D0=BA=D1=82=20=D0=9F=D0=B5=D1=82=D0=B5=D1=80=D0=B1=D1=83=D1=80?= =?UTF-8?q?=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy_staging.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy_staging.yaml b/.gitea/workflows/deploy_staging.yaml index 52bca70..fa6977d 100644 --- a/.gitea/workflows/deploy_staging.yaml +++ b/.gitea/workflows/deploy_staging.yaml @@ -38,11 +38,13 @@ jobs: env: REPO: ${{ github.repository }} run: | - if [ ${{ inputs.version }} == "new" ]; then + VERSION=${{ inputs.version }} + + if [ ${VERSION} == "new" ]; then GIT_SHA=$(git rev-parse --short HEAD) GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'none') else - GIT_SHA=$(echo ${{ inputs.version }} | cut -d'-' -f2) + GIT_SHA=$(echo ${VERSION} | cut -d'-' -f2) GIT_TAG='none' fi