From e09c3c114673762dc018aa7f1bf0b8dd55387a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Wed, 4 Mar 2026 11:50:26 +0800 Subject: [PATCH] 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. --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33a845f85..7b67d3f27 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -437,8 +437,9 @@ jobs: cat CHANGELOG.md - name: Create Release Draft and Upload Artifacts - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: + tag_name: ${{ github.ref_name }} name: NapCat ${{ github.ref_name }} token: ${{ secrets.GITHUB_TOKEN }} body_path: CHANGELOG.md