Skip to content

Commit e09c3c1

Browse files
committed
Upgrade release action to v2 and set tag_name
Update .github/workflows/release.yml to use softprops/action-gh-release@v2 and add the tag_name input mapped to github.ref_name so the created draft release uses the current ref as the release tag. Other release settings (name, token, body_path) are preserved.
1 parent cec011b commit e09c3c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,9 @@ jobs:
437437
cat CHANGELOG.md
438438
439439
- name: Create Release Draft and Upload Artifacts
440-
uses: softprops/action-gh-release@v1
440+
uses: softprops/action-gh-release@v2
441441
with:
442+
tag_name: ${{ github.ref_name }}
442443
name: NapCat ${{ github.ref_name }}
443444
token: ${{ secrets.GITHUB_TOKEN }}
444445
body_path: CHANGELOG.md

0 commit comments

Comments
 (0)