From 806a81ad9619324c9de33c472a38635a49c4c3c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ch=C4=99ci=C5=84ski?= Date: Tue, 31 Oct 2023 16:58:11 +0100 Subject: [PATCH] Fix branch --- .github/workflows/build-cli-docker.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-cli-docker.yml b/.github/workflows/build-cli-docker.yml index 02eccdafc..6e79754b8 100644 --- a/.github/workflows/build-cli-docker.yml +++ b/.github/workflows/build-cli-docker.yml @@ -82,10 +82,9 @@ jobs: ########## Generate image tag and build Docker image ########## - name: Generate Docker image tag id: tag - env: - SDK_BRANCH: ${{ inputs.sdk_branch }} run: | - IMAGE_TAG=$(echo "${SDK_BRANCH}" | sed "s#/#-#g") # slash safe branch name + REF=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} + IMAGE_TAG=$(echo "${REF}" | sed "s#/#-#g") # slash safe branch name if [[ "${IMAGE_TAG}" == "master" ]]; then IMAGE_TAG=dev elif [[ ("${IMAGE_TAG}" == "rc") || ("${IMAGE_TAG}" == "hotfix-rc") ]]; then