File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1010env :
1111 TZ : Asia/Shanghai
1212 IS_MANUAL_TRIGGER : ${{ github.event_name == 'workflow_dispatch' }}
13- IS_TAG_TRIGGER : ${{ github.ref_type == 'tag' }}
14- IS_BRANCH_TRIGGER : ${{ github.ref_type == 'branch' }}
13+ IS_TAG_TRIGGER : ${{ github.event.push.tags }}
1514
1615jobs :
1716 job_prepare :
@@ -164,8 +163,9 @@ jobs:
164163
165164 - name : Create GitHub Release
166165 uses : softprops/action-gh-release@v2
167- if : ${{ needs.job_prepare.outputs.is_latest == 'true' }} && ${{ needs.job_prepare.outputs.trigger_type == 'push ' }}
166+ if : ${{ env.IS_MANUAL_TRIGGER != 'true' && env.IS_TAG_TRIGGER == 'true ' }}
168167 with :
168+ body : ${{ needs.job_prepare.outputs.git_message }}
169169 tag_name : ${{ needs.job_prepare.outputs.git_tag }}
170170 prerelease : false
171171 files : releases/*
You can’t perform that action at this time.
0 commit comments