From 345c0d62a2725c7452ebfbc0595bb178e3d1c69f Mon Sep 17 00:00:00 2001 From: leeguooooo Date: Sat, 13 Jun 2026 15:55:46 +0900 Subject: [PATCH] ci(release): checkout repo in the release job so the changelog isn't empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The changelog step lived in the separate `release` job (needs: build), which had no checkout — so git ran with no repo ('fatal: not a git repository') and the body came out empty. Add a fetch-depth:0 checkout to that job; drop the now-pointless fetch-depth:0 from the build job. --- .github/workflows/release-binaries.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml index 1937969..4ef6cd4 100644 --- a/.github/workflows/release-binaries.yml +++ b/.github/workflows/release-binaries.yml @@ -39,7 +39,6 @@ jobs: uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.tag || github.ref }} - fetch-depth: 0 # full history so the changelog step can diff tags - name: Setup Rust toolchain uses: dtolnay/rust-toolchain@stable @@ -117,6 +116,16 @@ jobs: permissions: contents: write steps: + # The release job is separate from the build matrix and has no repo by + # default — check it out (full history + tags) so the changelog step has a + # git repo to diff. Without this, `git` failed with "not a git repository" + # and the changelog came out empty. + - name: Checkout + uses: actions/checkout@v6 + with: + ref: ${{ github.event.inputs.tag || github.ref }} + fetch-depth: 0 + - name: Download all artifacts uses: actions/download-artifact@v8 with: