Skip to content

Commit

Permalink
chore: auto-bump golang patch versions (#6711)
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <[email protected]>
  • Loading branch information
chen-keinan committed May 19, 2024
1 parent 39a746c commit eca5150
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/auto-update-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
- 'misc/triage/labels.yaml'
branches:
- main

env:
GO_VERSION: '1.22'
jobs:
deploy:
name: Auto-update labels
Expand All @@ -17,7 +18,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
# cf. https://github.com/aquasecurity/trivy/pull/6711
go-version: ${{ env.GO_VERSION }}

- name: Install aqua tools
uses: aquaproj/[email protected]
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:

env:
GH_USER: "aqua-bot"
GO_VERSION: '1.22'

jobs:
release:
Expand Down Expand Up @@ -76,7 +77,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}
cache: false # Disable cache to avoid free space issues during `Post Setup Go` step.

- name: Generate SBOM
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- 'mkdocs.yml'
- 'LICENSE'
merge_group:
env:
GO_VERSION: '1.22'
jobs:
test:
name: Test
Expand All @@ -30,8 +32,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

go-version: ${{ env.GO_VERSION }}
- name: go mod tidy
run: |
go mod tidy
Expand Down Expand Up @@ -83,7 +84,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}

- name: Install tools
uses: aquaproj/[email protected]
Expand Down Expand Up @@ -112,7 +113,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}

- name: Install tools
uses: aquaproj/[email protected]
Expand All @@ -132,7 +133,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}

- name: Install tools
uses: aquaproj/[email protected]
Expand Down Expand Up @@ -163,7 +164,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}
- name: Install tools
uses: aquaproj/[email protected]
with:
Expand Down Expand Up @@ -197,7 +198,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}

- name: Determine GoReleaser ID
id: goreleaser_id
Expand Down

0 comments on commit eca5150

Please sign in to comment.