Skip to content

Commit

Permalink
chore: setup sepcify go version (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook authored Dec 6, 2023
1 parent a04c56e commit 521a381
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release-charts-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ on:
type: string
required: false
default: ''
GO_VERSION:
description: "Install the specify version of GO"
type: string
required: false
default: ''


env:
Expand All @@ -87,6 +92,13 @@ jobs:
uses: azure/setup-helm@v3
with:
version: ${{ env.HELM_VERSION }}

- name: Setup Go specify version
if: inputs.GO_VERSION
uses: actions/setup-go@v3
with:
go-version: ${{ inputs.GO_VERSION }}

- uses: docker/setup-qemu-action@v3

- name: Checkout Code
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release-charts-enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ on:
type: string
required: false
default: ''
GO_VERSION:
description: "Install the specify version of GO"
type: string
required: false
default: ''


env:
Expand All @@ -101,6 +106,12 @@ jobs:
with:
version: ${{ env.HELM_VERSION }}

- name: Setup Go specify version
if: inputs.GO_VERSION
uses: actions/setup-go@v3
with:
go-version: ${{ inputs.GO_VERSION }}

- name: Checkout Code
if: ${{ inputs.GITHUB_REPO == '' }}
uses: actions/checkout@v4
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ on:
type: string
required: false
default: ''
GO_VERSION:
description: "Install the specify version of GO"
type: string
required: false
default: ''


env:
Expand All @@ -110,6 +115,12 @@ jobs:
with:
version: ${{ env.HELM_VERSION }}

- name: Setup Go specify version
if: inputs.GO_VERSION
uses: actions/setup-go@v3
with:
go-version: ${{ inputs.GO_VERSION }}

- name: Checkout Code
if: ${{ inputs.GITHUB_REPO == '' }}
uses: actions/checkout@v4
Expand Down

0 comments on commit 521a381

Please sign in to comment.