Skip to content

Commit

Permalink
add go-version-file
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed May 14, 2022
1 parent 64b5c5e commit 34e6101
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions setup-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ inputs:
description: "Set a Go version, e.g. 1.18"
default: "1.18"
required: false
go-version-file:
description: "Set a path to the go.mod, e.g. path/to/go.mod"
default: "go.mod"
required: false
cache-path:
description: "The path input of actions/cache"
default: "~/go/pkg/mod"
Expand All @@ -24,6 +28,7 @@ runs:
- uses: actions/setup-go@v3
with:
go-version: "${{ inputs.go-version }}"
go-version-file: "${{ inputs.go-version-file }}"

- uses: peaceiris/workflows/[email protected]
- uses: peaceiris/workflows/[email protected]
Expand Down
7 changes: 6 additions & 1 deletion setup-hugo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ inputs:
description: "Set a Go version, e.g. 1.18"
default: "1.18"
required: false
go-version-file:
description: "Set a path to the go.mod, e.g. path/to/go.mod"
default: "go.mod"
required: false
hugo-version:
description: "Set a Hugo version, e.g. 0.97.3"
default: "latest"
required: false
extended:
description: "Download and use Hugo extended version, if necessary. e.g. true"
default: false
default: "false"
required: false
cache-path:
description: "The path input of actions/cache"
Expand All @@ -38,6 +42,7 @@ runs:
- uses: actions/setup-go@v3
with:
go-version: "${{ inputs.go-version }}"
go-version-file: "${{ inputs.go-version-file }}"

- uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 34e6101

Please sign in to comment.