Skip to content

Commit dab3671

Browse files
committed
fix: change draft release
1 parent 1fe9d77 commit dab3671

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/draft_release_on_main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: Build a draft release
22

33
on:
4-
push:
5-
branches: [ "main" ]
6-
74
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'Release tag (e.g., v1.0.0)'
8+
required: true
9+
type: string
810

911
jobs:
1012
create-release:
@@ -32,7 +34,8 @@ jobs:
3234
- name: Draft a release
3335
uses: softprops/action-gh-release@v2
3436
with:
35-
name: ${{ env.RELVER }}
37+
tag_name: ${{ inputs.tag }}
38+
name: ${{ env.APPNAME }} ${{ inputs.tag }}
3639
body: |
3740
**!Important - review then remove this top section**
3841

0 commit comments

Comments
 (0)