From 4ed097959537e3f59b34146ee629b231ac3198d1 Mon Sep 17 00:00:00 2001 From: weizhoublue <45163302+weizhoublue@users.noreply.github.com> Date: Wed, 23 Aug 2023 20:00:58 +0800 Subject: [PATCH] Update call-release-image.yaml (#2219) * Update call-release-image.yaml * Update call-release-image.yaml --- .github/workflows/call-release-image.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/call-release-image.yaml b/.github/workflows/call-release-image.yaml index f6d4e4f7af..12a7814bb7 100644 --- a/.github/workflows/call-release-image.yaml +++ b/.github/workflows/call-release-image.yaml @@ -48,10 +48,6 @@ jobs: - name: Getting Image Ref id: ref run: | - if ${{ inputs.tagoverride != '' }} ; then - echo ::set-output name=imagetag::${{ inputs.tagoverride }} - exit 0 - fi if ${{ inputs.ref != '' }} ; then echo "call by workflow_call" image_ref=${{ inputs.ref }} @@ -66,8 +62,12 @@ jobs: fi echo ::set-output name=ref::${image_ref} [ -n "${image_suffix}" ] && echo ::set-output name=suffix::-${image_suffix} - # it is invalid if the ref is branch name "xx/xx/xx" - echo ::set-output name=imagetag::${image_ref##*/} + if ${{ inputs.tagoverride != '' }} ; then + echo ::set-output name=imagetag::${{ inputs.tagoverride }} + else + # it is invalid if the ref is branch name "xx/xx/xx" + echo ::set-output name=imagetag::${image_ref##*/} + fi exit 0 - name: Checkout Source Code