File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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 :
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
You can’t perform that action at this time.
0 commit comments