File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -21,41 +21,42 @@ jobs:
21
21
22
22
steps :
23
23
- name : Checkout
24
- uses : actions/checkout@v3
24
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
25
25
with :
26
26
fetch-depth : 0
27
-
28
- - uses : actions/setup-go@v5
27
+
28
+ - uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # tag=v5.4.0
29
29
with :
30
- go-version : v1.22.10
31
-
30
+ go-version : v1.23.7
31
+ cache : true
32
+
32
33
- name : Delete non-semver tags
33
34
run : ' git tag -d $(git tag -l | grep -v "^v")'
34
-
35
+
35
36
- name : Set LDFLAGS
36
37
run : echo LDFLAGS="$(make ldflags)" >> $GITHUB_ENV
37
-
38
+
38
39
- name : Run GoReleaser on tag
39
40
if : github.event_name != 'pull_request'
40
- uses : goreleaser/goreleaser-action@v6
41
+ uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # tag=v6.3.0
41
42
with :
42
43
distribution : goreleaser
43
- version : latest
44
+ version : ' ~> v2 '
44
45
args : release --timeout 60m
45
46
env :
46
47
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
-
48
+
48
49
- name : Run GoReleaser on pull request
49
50
if : github.event_name == 'pull_request'
50
- uses : goreleaser/goreleaser-action@v6
51
+ uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # tag=v6.3.0
51
52
with :
52
53
distribution : goreleaser
53
- version : latest
54
+ version : ' ~> v2 '
54
55
args : release --timeout 60m --snapshot
55
56
env :
56
57
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57
-
58
- - uses : actions/upload-artifact@v4
58
+
59
+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # tag=v4.6.2
59
60
if : github.event_name == 'pull_request'
60
61
with :
61
62
name : binaries
You can’t perform that action at this time.
0 commit comments