Skip to content

Commit

Permalink
ci: refactor environment variable handling in CI jobs
Browse files Browse the repository at this point in the history
- Move `GORELEASER_PREVIOUS_TAG` environment variable to a different location within the `jobs` section

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jun 8, 2024
1 parent 8446be0 commit 5732a70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ 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
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_PREVIOUS_TAG: v1.17.1

0 comments on commit 5732a70

Please sign in to comment.