File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 release :
66 types : [published]
7+ push :
78
89jobs :
910 zip_and_upload :
4041 - name : Find the latest existing release tag
4142 id : get_release
4243 run : |
43- if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
44+ if [ "${{ github.event_name }}" == "release" ]; then
45+ LATEST_TAG="${{ github.event.release.tag_name }}"
46+ else
4447 echo "::notice::Running manually via workflow_dispatch. Fetching latest release tag..."
4548
4649 gh auth status || echo "GitHub CLI is not authenticated, relying on GITHUB_TOKEN."
5255 echo "::error::Could not find the latest published release tag. Ensure a release exists."
5356 exit 1
5457 fi
55- else
56- LATEST_TAG="${{ github.event.release.tag_name }}"
5758 fi
5859
5960 echo "Latest release tag found: $LATEST_TAG"
You can’t perform that action at this time.
0 commit comments