File tree 1 file changed +9
-1
lines changed 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -123,10 +123,18 @@ jobs:
123
123
echo "release_action=create" >> $GITHUB_OUTPUT
124
124
fi
125
125
126
+ # is latest tag?
127
+ LAST_TAG=$(git for-each-ref refs/tags --sort='-*creatordate' --format='%(refname:short)' --count=1)
128
+ if [[ "${LAST_TAG}" == "${{ steps.metadata.outputs.tag }}" ]] ; then
129
+ echo "latest=true" >> $GITHUB_OUTPUT
130
+ else
131
+ echo "latest=false" >> $GITHUB_OUTPUT
132
+ fi
133
+
126
134
- name : " ${{ steps.tag.outputs.release_action }} release for ${{ steps.metadata.outputs.tag }}"
127
135
if : ${{ inputs.release == true || inputs.release == 'true' || steps.tag.outputs.undraft == 'true' }}
128
136
run : |
129
- gh release ${{ steps.tag.outputs.release_action }} ${{ steps.metadata.outputs.tag }} --draft=false --title ${{ steps.metadata.outputs.tag }} -F OUTPUT.md
137
+ gh release ${{ steps.tag.outputs.release_action }} ${{ steps.metadata.outputs.tag }} --latest=${{ steps.tag.outputs.latest }} -- draft=false --title ${{ steps.metadata.outputs.tag }} -F OUTPUT.md
130
138
131
139
- name : " Publish module"
132
140
if : ${{ inputs.publish == true || inputs.publish == 'true' }}
You can’t perform that action at this time.
0 commit comments