更新生成变更日志步骤,修复输出逻辑以正确设置 changelog 输出
All checks were successful
Release to Liteyuki Gitea / release (push) Successful in 19s
Publish to Liteyuki PyPI / Upload release to PyPI (push) Successful in 27s

This commit is contained in:
远野千束 2025-04-29 01:06:56 +08:00
parent b72578ecbe
commit 06ae7e6661

View File

@ -22,7 +22,9 @@ jobs:
echo "Current version: ${{ github.ref_name }}"
wget -O /usr/bin/changelog https://gitea.com/gitea/changelog/releases/download/v1.0.0/changelog-1.0.0-linux-amd64
chmod +x /usr/bin/changelog
changelog -m=${{ github.ref_name }} -c=./changelog.yaml
changelog_output=$(changelog generate -m=${{ github.ref_name }} -c=./changelog.yaml)
echo "$changelog_output"
echo "::set-output name=changelog::$changelog_output"
# 创建 Gitea Release
- name: Create Gitea Release
@ -36,7 +38,7 @@ jobs:
"tag_name": "'"${{ github.ref_name }}"'",
"target_commitish": "main",
"name": "'"$TAG_NAME"'",
"body": "'"waiting..."'",
"body": "'"${{ steps.generate_changelog.outputs.changelog }}"'",
"draft": false,
"prerelease": false
}'