chore(ci): 精简 publish-release job,移除多余 checkout

Made-with: Cursor
This commit is contained in:
voson
2026-03-19 20:26:45 +08:00
parent 955acfe9ec
commit ff9767ff95

View File

@@ -407,8 +407,6 @@ jobs:
runs-on: debian runs-on: debian
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: actions/checkout@v4
- name: 发布草稿 - name: 发布草稿
env: env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
@@ -448,7 +446,8 @@ jobs:
tag="${{ needs.version.outputs.tag }}" tag="${{ needs.version.outputs.tag }}"
tag_exists="${{ needs.version.outputs.tag_exists }}" tag_exists="${{ needs.version.outputs.tag_exists }}"
commit=$(git log -1 --pretty=format:"%s" 2>/dev/null || echo "N/A") commit="${{ github.event.head_commit.message }}"
[ -z "$commit" ] && commit="${{ github.sha }}"
url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}" url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}"
linux_r="${{ needs.build-linux.result }}" linux_r="${{ needs.build-linux.result }}"