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
@@ -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