From 5732a702b7011feb7e26ca6b58c275ec3d0b2c84 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 8 Jun 2024 23:17:58 +0800 Subject: [PATCH] ci: refactor environment variable handling in CI jobs - Move `GORELEASER_PREVIOUS_TAG` environment variable to a different location within the `jobs` section Signed-off-by: Bo-Yi Wu --- .github/workflows/goreleaser.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index aadd87f1d..4400850da 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -22,8 +22,6 @@ jobs: check-latest: true - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 - env: - GORELEASER_PREVIOUS_TAG: v1.17.1 with: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser @@ -31,3 +29,4 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GORELEASER_PREVIOUS_TAG: v1.17.1