From d9143f55ceb99d28cc0bfe89fd9fa0f54032f836 Mon Sep 17 00:00:00 2001 From: Quan TRAN Date: Mon, 23 May 2022 10:12:12 +0200 Subject: [PATCH] fix image build on tag / main --- .github/actions/setup-docker-environment/action.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-docker-environment/action.yaml b/.github/actions/setup-docker-environment/action.yaml index 6289ed0a..6a181f05 100644 --- a/.github/actions/setup-docker-environment/action.yaml +++ b/.github/actions/setup-docker-environment/action.yaml @@ -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