diff --git a/.gitea/workflows/secrets.yml b/.gitea/workflows/secrets.yml index 6f6de14..fa58e88 100644 --- a/.gitea/workflows/secrets.yml +++ b/.gitea/workflows/secrets.yml @@ -407,8 +407,6 @@ jobs: runs-on: debian timeout-minutes: 5 steps: - - uses: actions/checkout@v4 - - name: 发布草稿 env: RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} @@ -448,7 +446,8 @@ jobs: tag="${{ needs.version.outputs.tag }}" 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 }}" linux_r="${{ needs.build-linux.result }}"