55 это Санкт Петербург
All checks were successful
Deploy Production / Deploy to Staging (push) Has been skipped
All checks were successful
Deploy Production / Deploy to Staging (push) Has been skipped
This commit is contained in:
@@ -38,11 +38,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
run: |
|
run: |
|
||||||
if [ ${{ inputs.version }} == "new" ]; then
|
VERSION=${{ inputs.version }}
|
||||||
|
|
||||||
|
if [ ${VERSION} == "new" ]; then
|
||||||
GIT_SHA=$(git rev-parse --short HEAD)
|
GIT_SHA=$(git rev-parse --short HEAD)
|
||||||
GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'none')
|
GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'none')
|
||||||
else
|
else
|
||||||
GIT_SHA=$(echo ${{ inputs.version }} | cut -d'-' -f2)
|
GIT_SHA=$(echo ${VERSION} | cut -d'-' -f2)
|
||||||
GIT_TAG='none'
|
GIT_TAG='none'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user