Skip to content

Commit

Permalink
Align GitHub Action runner go version
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
  • Loading branch information
anmazzotti committed Mar 27, 2024
1 parent b2841f1 commit 6866b6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GO_VERSION: "1.20"

jobs:
validate:
Expand All @@ -25,8 +24,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version-file: "./go.mod"
go-version: "${{ env.GO_VERSION }}"
go-version-file: go.mod
cache: true

- name: ${{ matrix.target }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- "v*"
env:
REGISTRY: ghcr.io/${{ github.repository }}
GO_VERSION: "1.20"

permissions:
packages: write
Expand Down Expand Up @@ -102,7 +101,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ env.GO_VERSION }}"
go-version-file: go.mod
cache: true

- uses: actions/cache@v3
Expand Down

0 comments on commit 6866b6c

Please sign in to comment.