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