Skip to content

Commit

Permalink
Merge pull request #55 from authzed/ecordell-patch-1
Browse files Browse the repository at this point in the history
Make go mod download an optional step in setup-go
  • Loading branch information
ecordell committed Apr 2, 2024
2 parents de0aa93 + 0bc9aa1 commit eb54db5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup-go/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ inputs:
cache-dependency-path:
description: "Used to specify the path to a dependency file - go.sum"
default: "**/go.sum"
download:
description: "Whether or not to run go mod download as part of setup"
default: "true"
required: false
working_directory:
description: "The directory with the root of the project"
default: "."
Expand All @@ -24,6 +28,7 @@ runs:
cache-dependency-path: "${{ inputs.cache-dependency-path }}"
cache: "true"
- name: "Run Go Mod Download"
if: "inputs.download == 'true'"
working-directory: "${{ inputs.working_directory }}"
shell: "bash"
run: "go mod download"

0 comments on commit eb54db5

Please sign in to comment.