From 651c452fe18f020b3d3821b4070b0af7870de4ba Mon Sep 17 00:00:00 2001 From: Syngnat Date: Sun, 7 Jun 2026 20:32:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ci):=20=E8=AE=A9=20Go=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E8=B7=9F=E9=9A=8F=20go.mod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 dev-build 的两处 setup-go 改为读取 go.mod - 同步修正 release workflow,避免构建 Go 版本再次漂移 --- .github/workflows/dev-build.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 19d3243..053aef5 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -23,7 +23,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v6 with: - go-version: '1.24.3' + go-version-file: 'go.mod' - name: Setup Node uses: actions/setup-node@v5 @@ -278,7 +278,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v6 with: - go-version: '1.24.3' + go-version-file: 'go.mod' - name: Download frontend dist uses: actions/download-artifact@v7 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index efe7ae4..c765c2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v6 with: - go-version: '1.24.3' + go-version-file: 'go.mod' - name: Setup Node uses: actions/setup-node@v5 @@ -283,7 +283,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v6 with: - go-version: '1.24.3' + go-version-file: 'go.mod' - name: Download frontend dist uses: actions/download-artifact@v7