File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1515 - dev
1616 - test
1717 - prod
18- release_tag :
19- description : ' Release tag to deploy (e.g. v1.2.3). Leave empty to use the current commit SHA.'
20- required : false
21- type : string
2218
2319env :
2420 WORKING_DIRECTORY : .
6258 - name : Get Image Tag
6359 id : version
6460 run : |
65- if [[ -n "${{ github.event.inputs.release_tag }}" ]]; then
66- VERSION="${{ github.event.inputs.release_tag }}"
61+ if [[ "${{ github.ref }}" == refs/tags/* ]]; then
62+ VERSION="${{ github.ref_name }}"
6763 echo "IMAGE_TAG=${VERSION#v}" >> $GITHUB_OUTPUT
6864 echo "RELEASE_VERSION=${VERSION#v}" >> $GITHUB_OUTPUT
6965 else
Original file line number Diff line number Diff line change 5353 - name : Get Image Tag
5454 id : version
5555 run : |
56- if [[ "${{ github.event_name }}" == "release" ]]; then
57- VERSION="${{ github.event.release.tag_name }}"
56+ if [[ "${{ github.ref }}" == refs/tags/* ]]; then
57+ VERSION="${{ github.ref_name }}"
5858 echo "IMAGE_TAG=${VERSION#v}" >> $GITHUB_OUTPUT
5959 echo "RELEASE_VERSION=${VERSION#v}" >> $GITHUB_OUTPUT
6060 else
You can’t perform that action at this time.
0 commit comments