fix image build on tag / main

This commit is contained in:
Quan TRAN 2022-05-23 10:12:12 +02:00 committed by GitHub
parent 7e2462ed62
commit d9143f55ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,10 @@ runs:
id: vars
run: |
echo ::set-output name=sha_short::${GITHUB_SHA::7}
TAG=${GITHUB_REF/refs\/tags\//}
TAG=${GITHUB_REF##*/}
if [ "main" == "${TAG} ]; then
TAG=canary
fi
echo ::set-output name=tag::${TAG:-canary}
shell: bash