Skip to content

Commit 1c2f870

Browse files
committed
update workflow
1 parent ea60b2c commit 1c2f870

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ on:
1010
env:
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

1615
jobs:
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/*

0 commit comments

Comments
 (0)