From 93e1556513575d3cae615a267f8e0e7d92baf303 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 29 Aug 2024 12:04:13 -0400 Subject: [PATCH] feat(ci): support using go-version-file in build workflow --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) 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 }}