diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6136aa6..8aed2af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,9 @@ on: required: false type: string default: stable + go-version-file: + required: false + type: string working-directory: required: false type: string @@ -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 }}