Skip to content

Commit

Permalink
feat:Use go version from go.mod file.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Jan 23, 2025
1 parent 33b596d commit 29f1061
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ on:
# General or common inputs. These cross cut concerns generally and shouldn't
# be included in the more targetted sections below.
go-version:
description: "The go version to use. Example: '1.20.x'"
description: "This input is deprecated. The value present in the go.mod file is used instead."
required: false
type: string
default: '^1.20.x'
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:
- name: Setup go version
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ inputs.go-version }}
go-version-file: ${{ inputs.working-directory }}/go.mod
check-latest: ${{ inputs.go-version-latest }}
cache-dependency-path: ${{ inputs.working-directory }}

Expand Down Expand Up @@ -336,7 +336,7 @@ jobs:
- name: Setup go version
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ inputs.go-version }}
go-version-file: ${{ inputs.working-directory }}/go.mod
check-latest: ${{ inputs.go-version-latest }}
cache-dependency-path: ${{ inputs.working-directory }}

Expand Down Expand Up @@ -437,7 +437,7 @@ jobs:
- name: Setup go version
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ inputs.go-version }}
go-version-file: ${{ inputs.working-directory }}/go.mod
check-latest: ${{ inputs.go-version-latest }}
cache-dependency-path: ${{ inputs.working-directory }}

Expand Down Expand Up @@ -472,7 +472,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ inputs.go-version }}
go-version-file: ${{ inputs.working-directory }}/go.mod
check-latest: ${{ inputs.go-version-latest }}
cache-dependency-path: ${{ inputs.working-directory }}

Expand Down Expand Up @@ -534,7 +534,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ inputs.go-version }}
go-version-file: ${{ inputs.working-directory }}/go.mod
check-latest: ${{ inputs.go-version-latest }}
cache-dependency-path: ${{ inputs.working-directory }}

Expand Down Expand Up @@ -631,7 +631,7 @@ jobs:
- name: Setup go version
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ inputs.go-version }}
go-version-file: ${{ inputs.working-directory }}/go.mod
check-latest: ${{ inputs.go-version-latest }}
cache-dependency-path: ${{ inputs.working-directory }}

Expand Down

0 comments on commit 29f1061

Please sign in to comment.