Skip to content

Commit

Permalink
Update actions/setup-go to v5 (#3154)
Browse files Browse the repository at this point in the history
* Update actions/setup-go to v5

* Actually use v5
  • Loading branch information
pietern committed Jan 29, 2024
1 parent 4acd04d commit 39cb0d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 24 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v1
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x

- name: Cache packages
uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
/opt/hostedtoolcache/go
vendor
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Set go env
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Pull external libraries
run: make vendor

Expand All @@ -52,7 +35,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.x

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ jobs:
with:
fetch-depth: 0

-
name: Set up Go
uses: actions/setup-go@v1
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
ref: ${{ github.event.inputs.head }}

- name: "Setup Go"
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.21.x

Expand Down

0 comments on commit 39cb0d4

Please sign in to comment.