WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
File tree Expand file tree Collapse file tree 2 files changed +17
-15
lines changed
Expand file tree Collapse file tree 2 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,17 @@ jobs:
1414 name : Run gofmt
1515 runs-on : ubuntu-latest
1616 steps :
17- - name : Set up Go 1.22
18- uses : actions/setup-go@v2
17+ - name : Check out code into the Go module directory
18+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
19+
20+ - name : Set up Go
21+ uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
1922 with :
20- go-version : ' 1.22'
23+ go-version-file : ' go.mod'
24+ check-latest : true
2125 id : go
2226
23- - name : Check out code into the Go module directory
24- uses : actions/checkout@v2
25-
26- - uses : actions/cache@v2
27+ - uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
2728 with :
2829 path : ~/go/pkg/mod
2930 key : ${{ runner.os }}-gofmt1.22-${{ hashFiles('**/go.sum') }}
Original file line number Diff line number Diff line change @@ -17,16 +17,17 @@ jobs:
1717 name : Build and test on Ubuntu
1818 runs-on : ubuntu-latest
1919 steps :
20- - name : Set up Go 1.22
21- uses : actions/setup-go@v2
20+ - name : Check out code
21+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
22+
23+ - name : Set up Go
24+ uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
2225 with :
23- go-version : ' 1.22'
26+ go-version-file : ' go.mod'
27+ check-latest : true
2428 id : go
2529
26- - name : Check out code
27- uses : actions/checkout@v3
28-
29- - uses : actions/cache@v2
30+ - uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
3031 with :
3132 path : ~/go/pkg/mod
3233 key : ${{ runner.os }}-go1.22-${{ hashFiles('**/go.sum') }}
4041
4142 - name : Report failures to Slack
4243 if : ${{ always() && github.ref == 'refs/heads/main' }}
43- uses : ravsamhq/notify-slack-action@v2
44+ uses : ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2 # v2
4445 with :
4546 notification_title : " It seems that my sole purpose in this dismal existence is to spread the gloomy news of broken code and shattered dreams."
4647 footer : " I think you ought to know I'm feeling very depressed."
You can’t perform that action at this time.
0 commit comments