Skip to content

Commit

Permalink
feat: replace "latest" with wildcard for SemVer support
Browse files Browse the repository at this point in the history
  • Loading branch information
jbristowe committed May 3, 2022
1 parent ba1d05b commit 393cafc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import {installOctopusCli} from './octopus-cli'

async function run(): Promise<void> {
try {
const version = getInput('version') || 'latest'
var version = getInput('version') || '*'
if (version === 'latest') {
version = '*'
}
const octopusCli = await installOctopusCli(version)
const octopusCliDir = dirname(octopusCli)
addPath(octopusCliDir)
Expand Down

0 comments on commit 393cafc

Please sign in to comment.