Skip to content

Commit b351a1e

Browse files
authored
CI: upgrade GitHub actions to latest (#631)
Move actions/checkout before actions/setup-go. Upgrade actions/checkout to v4. Upgrade actions/setup-go to v5.
1 parent 07c7dd4 commit b351a1e

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.github/workflows/cron.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414

15-
- name: Set up Go 1.x
16-
uses: actions/setup-go@v2
15+
- name: Check out code into the Go module directory
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
1720
with:
1821
# Run on the latest minor release of Go 1.22:
1922
go-version: ^1.22
2023
id: go
2124

22-
- name: Check out code into the Go module directory
23-
uses: actions/checkout@v2
24-
2525
- name: Ensure all files were formatted as per gofmt
2626
run: |
2727
[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]

.github/workflows/pull.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313

14-
- name: Set up Go 1.x
15-
uses: actions/setup-go@v2
14+
- name: Check out code into the Go module directory
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
1619
with:
1720
# Run on the latest minor release of Go 1.22:
1821
go-version: ^1.22
1922
id: go
2023

21-
- name: Check out code into the Go module directory
22-
uses: actions/checkout@v2
23-
2424
- name: Ensure all files were formatted as per gofmt
2525
run: |
2626
[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]

.github/workflows/push.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313

14-
- name: Set up Go 1.x
15-
uses: actions/setup-go@v2
14+
- name: Check out code into the Go module directory
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
1619
with:
1720
# Run on the latest minor release of Go 1.22:
1821
go-version: ^1.22
1922
id: go
2023

21-
- name: Check out code into the Go module directory
22-
uses: actions/checkout@v2
23-
2424
- name: Ensure all files were formatted as per gofmt
2525
run: |
2626
[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]

0 commit comments

Comments
 (0)