File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,19 @@ jobs:
2828 steps :
2929 - name : Determine tag to release
3030 id : tag
31+ env :
32+ INPUT_TAG : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || '' }}
33+ DISPATCH_TAG : ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.tag || '' }}
34+ REF_NAME : ${{ github.ref_name }}
3135 run : |
32- if [ -n "${{ github.event.inputs.tag } }" ]; then
33- TAG="${{ github.event.inputs.tag } }"
34- elif [ -n "${{ github.event.client_payload.tag } }" ]; then
35- TAG="${{ github.event.client_payload.tag } }"
36+ if [ -n "${INPUT_TAG }" ]; then
37+ TAG="${INPUT_TAG }"
38+ elif [ -n "${DISPATCH_TAG }" ]; then
39+ TAG="${DISPATCH_TAG }"
3640 else
37- TAG="${{ github.ref_name } }"
41+ TAG="${REF_NAME }"
3842 fi
39- echo "tag=$TAG" >> $GITHUB_OUTPUT
43+ echo "tag=$TAG" >> " $GITHUB_OUTPUT"
4044 echo "Releasing tag: $TAG"
4145
4246 - name : Ensure CI succeeded for tag commit
You can’t perform that action at this time.
0 commit comments