Skip to content

Commit 759f528

Browse files
committed
fix(github): try and sort checksum missmatch on goreleaser
Signed-off-by: Fred Myerscough <oniice@gmail.com>
1 parent 412a7ee commit 759f528

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/manual-release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,28 @@ jobs:
8181
git tag ${{ steps.get-version.outputs.next_tag }}
8282
git push origin ${{ steps.get-version.outputs.next_tag }}
8383
84+
- name: Checkout the tagged commit
85+
uses: actions/checkout@v4
86+
with:
87+
ref: ${{ steps.get-version.outputs.next_tag }}
88+
fetch-depth: 0
89+
90+
- name: Set up Go (again for clean checkout)
91+
uses: actions/setup-go@v4
92+
with:
93+
go-version: '1.24'
94+
95+
- name: Install golangci-lint (again for clean checkout)
96+
uses: golangci/golangci-lint-action@v3
97+
with:
98+
version: latest
99+
args: --version
100+
101+
- name: Install GoReleaser (again for clean checkout)
102+
uses: goreleaser/goreleaser-action@v6
103+
with:
104+
install-only: true
105+
84106
- name: Run GoReleaser
85107
uses: goreleaser/goreleaser-action@v6
86108
with:

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
with:
2424
go-version: '1.24'
2525

26+
- name: Install golangci-lint
27+
uses: golangci/golangci-lint-action@v3
28+
with:
29+
version: latest
30+
args: --version
31+
2632
- name: Install GoReleaser
2733
uses: goreleaser/goreleaser-action@v6
2834
with:
@@ -78,6 +84,32 @@ jobs:
7884
git tag ${{ steps.get-version.outputs.next_tag }}
7985
git push origin ${{ steps.get-version.outputs.next_tag }}
8086
87+
- name: Checkout the tagged commit
88+
if: steps.git-diff.outputs.changed == 'true'
89+
uses: actions/checkout@v4
90+
with:
91+
ref: ${{ steps.get-version.outputs.next_tag }}
92+
fetch-depth: 0
93+
94+
- name: Set up Go (again for clean checkout)
95+
if: steps.git-diff.outputs.changed == 'true'
96+
uses: actions/setup-go@v4
97+
with:
98+
go-version: '1.24'
99+
100+
- name: Install golangci-lint (again for clean checkout)
101+
if: steps.git-diff.outputs.changed == 'true'
102+
uses: golangci/golangci-lint-action@v3
103+
with:
104+
version: latest
105+
args: --version
106+
107+
- name: Install GoReleaser (again for clean checkout)
108+
if: steps.git-diff.outputs.changed == 'true'
109+
uses: goreleaser/goreleaser-action@v6
110+
with:
111+
install-only: true
112+
81113
- name: Run GoReleaser
82114
if: steps.git-diff.outputs.changed == 'true'
83115
uses: goreleaser/goreleaser-action@v6

0 commit comments

Comments
 (0)