Skip to content

Commit

Permalink
feat(ci): support using go-version-file in build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Aug 29, 2024
1 parent 89a9a4f commit 93e1556
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
required: false
type: string
default: stable
go-version-file:
required: false
type: string
working-directory:
required: false
type: string
Expand Down Expand Up @@ -51,7 +54,9 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go_version }}
go-version-file: ${{ inputs.go-version-file }}
cache: true
if: ${{ inputs.go-version-file == '' }}
- name: Download Go modules
run: go mod download
working-directory: ${{ inputs.working-directory }}
Expand Down

0 comments on commit 93e1556

Please sign in to comment.