Skip to content

Commit

Permalink
Merge pull request #236 from xmidt-org/use-gomod-version
Browse files Browse the repository at this point in the history
feat:Use go version from go.mod file.
  • Loading branch information
schmidtw authored Feb 6, 2025
2 parents ae8f8e9 + bed47dd commit e3fa75e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 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 Expand Up @@ -1100,6 +1100,7 @@ jobs:
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NFPM_DEFAULT_RPM_PASSPHRASE: ${{ secrets.RPM_GPG_PRIVATE_PASSWORD }}
NFPM_DEFAULT_DEB_PASSPHRASE: ${{ secrets.RPM_GPG_PRIVATE_PASSWORD }}

- name: Remove .secrets directory
if: |
Expand Down

0 comments on commit e3fa75e

Please sign in to comment.