From 0fdcd3a02ca2a541d69ed6db747a558c0d3f154e Mon Sep 17 00:00:00 2001 From: Su Yang Date: Thu, 22 Oct 2026 13:21:41 +0800 Subject: [PATCH] fix(ci): restore project Go after release quality reports --- .github/workflows/release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9a2c69..706f790 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v7 + with: + ref: ${{ inputs.tag && format('refs/tags/{0}', inputs.tag) || github.ref }} + persist-credentials: false - name: Set up Go environment uses: actions/setup-go@v7 @@ -91,6 +94,7 @@ jobs: uses: actions/checkout@v7 with: + ref: ${{ inputs.tag && format('refs/tags/{0}', inputs.tag) || github.ref }} persist-credentials: false - name: Set up Go environment uses: actions/setup-go@v7 @@ -211,6 +215,13 @@ jobs: .github/test-results/ include-hidden-files: true retention-days: 14 + # Report actions select their own Go; restore the project's toolchain. + - name: Restore project Go toolchain + uses: actions/setup-go@v7 + with: + go-version-file: go.mod + cache: false + - name: Reuse GTR coverage profile run: cp .github/test-results/coverage.out coverage.out - name: Display coverage summary