From 3050a6c0adca32ec6b9c6edd43c4b557da0f4001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=85=8E=E9=A5=BC=E6=9E=9C=E5=AD=90=E5=8D=B7=E9=B2=A8?= =?UTF-8?q?=E9=B1=BC=E8=BE=A3=E6=A4=92?= Date: Mon, 30 Dec 2024 19:23:34 +0800 Subject: [PATCH] chore: update auto-tag workflow to use snapshot mode and enhance debugging - Changed GoReleaser execution argument from '--debug' to '--snapshot' for improved release management. - Added GORELEASER_DEBUG environment variable to enable detailed logging during the release process. - Introduced GORELEASER_CURRENT_TAG environment variable to capture the current version tag, enhancing visibility in the workflow. --- .github/workflows/auto-tag-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-tag-release.yml b/.github/workflows/auto-tag-release.yml index eb55560..38945e8 100644 --- a/.github/workflows/auto-tag-release.yml +++ b/.github/workflows/auto-tag-release.yml @@ -156,7 +156,7 @@ jobs: with: distribution: goreleaser version: latest - args: release --clean --timeout 60m --debug + args: release --clean --timeout 60m --snapshot env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VERSION: ${{ steps.get_latest_tag.outputs.version }} @@ -166,6 +166,8 @@ jobs: GOROOT: ${{ env.GOROOT }} GOCACHE: ${{ github.workspace }}/.cache/go-build GOMODCACHE: ${{ github.workspace }}/go/pkg/mod + GORELEASER_DEBUG: 1 + GORELEASER_CURRENT_TAG: ${{ steps.get_latest_tag.outputs.version }} # 添加错误检查步骤 - name: Check GoReleaser Output