Skip to content

Commit

Permalink
Align go version with openshift-knative/hack#103
Browse files Browse the repository at this point in the history
  • Loading branch information
ReToCode committed Feb 5, 2024
1 parent 62e2c01 commit e24e0f7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/multiarch-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ jobs:
multiarch-build:
uses: openshift-knative/hack/.github/workflows/multiarch-build.yaml@main
secrets: inherit
with:
goversion: '1.21.x'
2 changes: 1 addition & 1 deletion .github/workflows/sync-upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
sync-upstream:
if: github.event.created || github.event_name == 'workflow_dispatch'
name:
name: Sync with upstream
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
env:
GOPATH: ${{ github.workspace }}
steps:
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- name: Checkout
uses: actions/checkout@v3
with:
path: ./src/github.com/${{ github.repository }}
fetch-depth: 0

- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version-file: ./src/github.com/${{ github.repository }}/go.mod

- name: Regenerate all generated files
working-directory: ./src/github.com/${{ github.repository }}
run: ./openshift/release/generate-release.sh ${{ github.base_ref }}
Expand All @@ -48,16 +48,16 @@ jobs:
env:
GOPATH: ${{ github.workspace }}
steps:
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- name: Checkout
uses: actions/checkout@v2
with:
path: ./src/github.com/${{ github.repository }}

- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version-file: ./src/github.com/${{ github.repository }}/go.mod

- name: Install Tools
working-directory: ./src/github.com/${{ github.repository }}
env:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/vulncheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ jobs:
env:
GOPATH: ${{ github.workspace }}
steps:
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- name: Checkout
uses: actions/checkout@v2
with:
path: ./src/github.com/${{ github.repository }}

- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version-file: ./src/github.com/${{ github.repository }}/go.mod


- name: Govulncheck scan
working-directory: ./src/github.com/${{ github.repository }}
run: |
Expand Down

0 comments on commit e24e0f7

Please sign in to comment.