Skip to content

Commit

Permalink
fix: fetch full-depth
Browse files Browse the repository at this point in the history
This is required for GoReleaser to work properly. Without that, GoReleaser might fail or behave incorrectly.

Signed-off-by: Matthew Fisher <[email protected]>
  • Loading branch information
bacongobbler committed Apr 11, 2024
1 parent e030d6e commit 3c42637
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# fetch all history for goreleaser to work correctly
# https://goreleaser.com/ci/actions/#workflow
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.x"

- name: Install dependencies
run: go mod download
go-version: stable

- name: GoReleaser
uses: goreleaser/goreleaser-action@v5.0.0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean ${{ github.ref == 'refs/heads/main' && '--snapshot' || '' }}
Expand Down

0 comments on commit 3c42637

Please sign in to comment.