Skip to content

Commit 6bd836f

Browse files
committed
workflows: update action versions
Pin to the last patch release of a Go minor, rather than the first.
1 parent 18065fb commit 6bd836f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/go.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
---
21
name: Go
3-
"on":
2+
on:
43
push:
54
branches: [main]
65
pull_request:
@@ -11,22 +10,22 @@ permissions:
1110

1211
env:
1312
# Minimum supported Go toolchain
14-
ACTION_MINIMUM_TOOLCHAIN: "1.12"
13+
ACTION_MINIMUM_TOOLCHAIN: "1.12.x"
1514

1615
jobs:
1716
build:
1817
name: "Build"
1918
runs-on: ubuntu-latest
2019
strategy:
2120
matrix:
22-
go: ['1.17', '1.18']
21+
go: ['1.17.x', '1.18.x']
2322
steps:
2423
- run: sudo apt-get -qq update
2524
- name: Install libsystemd-dev
2625
run: sudo apt-get install libsystemd-dev
27-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2827
- name: Setup go
29-
uses: actions/setup-go@v1
28+
uses: actions/setup-go@v3
3029
with:
3130
go-version: ${{ matrix.go }}
3231
- name: Go fmt
@@ -44,9 +43,9 @@ jobs:
4443
- run: sudo apt-get -qq update
4544
- name: Install libsystemd-dev
4645
run: sudo apt-get install libsystemd-dev
47-
- uses: actions/checkout@v2
46+
- uses: actions/checkout@v3
4847
- name: Setup go
49-
uses: actions/setup-go@v1
48+
uses: actions/setup-go@v3
5049
with:
5150
go-version: ${{ env['ACTION_MINIMUM_TOOLCHAIN'] }}
5251
- name: Go fmt

0 commit comments

Comments
 (0)