Skip to content

Commit

Permalink
Ensure mill version is read from inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrohdezma committed Jan 9, 2023
1 parent c39e321 commit ebfbc4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ inputs:
or `.sbtopts`) when found on repositories or not.
default: "true"
required: false
mill-version:
description: |
Mill version to install. Take into account this will
just affect the global `mill` executable. Scala
Steward will still respect the version specified in
your repository while updating it.
default: "0.10.9"
required: false
other-args:
description: |
Other Scala Steward arguments not yet supported by
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as exec from '@actions/exec'
*/
export async function install(): Promise<void> {
try {
const millVersion = core.getInput('mill-version') || '0.10.9'
const millVersion = core.getInput('mill-version')

const cachedPath = tc.find('mill', millVersion)

Expand Down

0 comments on commit ebfbc4c

Please sign in to comment.