Skip to content

Commit

Permalink
Update call-release-image.yaml (#2219)
Browse files Browse the repository at this point in the history
* Update call-release-image.yaml

* Update call-release-image.yaml
  • Loading branch information
weizhoublue authored Aug 23, 2023
1 parent e324a26 commit 4ed0979
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/call-release-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 4ed0979

Please sign in to comment.