File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
Expand file tree Collapse file tree 2 files changed +12
-10
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 : Set up Go
18+ uses : actions/setup-go@@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
1919 with :
20- go-version : ' 1.22'
20+ go-version-file : ' go.mod'
21+ check-latest : true
2122 id : go
2223
2324 - name : Check out code into the Go module directory
24- uses : actions/checkout@v2
25+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2526
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 @@ -18,15 +18,16 @@ jobs:
1818 runs-on : ubuntu-latest
1919 steps :
2020 - name : Set up Go 1.22
21- uses : actions/setup-go@v2
21+ uses : actions/setup-go@@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
2222 with :
23- go-version : ' 1.22'
23+ go-version-file : ' go.mod'
24+ check-latest : true
2425 id : go
2526
2627 - name : Check out code
27- uses : actions/checkout@v3
28+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2829
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