generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update dependencies to latest to patch reported vulnerabilities (…
…#29)
- Loading branch information
1 parent
cf47abc
commit f103061
Showing
5 changed files
with
1,316 additions
and
1,690 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import {versionConstraintSearch} from './search'; | ||
import {getMinMaxVersions} from './versions'; | ||
|
||
import * as core from '@actions/core'; | ||
import {getInput, setOutput, setFailed} from '@actions/core'; | ||
|
||
async function run(): Promise<void> { | ||
const directory = core.getInput('directory'); | ||
const directory = getInput('directory'); | ||
const versionConstraint = await versionConstraintSearch(directory); | ||
|
||
try { | ||
const pattern = versionConstraint.replace(/,|"/g, ''); | ||
const [min, max] = await getMinMaxVersions(pattern); | ||
core.setOutput('minVersion', min); | ||
setOutput('minVersion', min); | ||
if (max) { | ||
core.setOutput('maxVersion', max); | ||
setOutput('maxVersion', max); | ||
} else { | ||
core.setOutput('maxVersion', min); | ||
setOutput('maxVersion', min); | ||
} | ||
} catch (err) { | ||
console.error(err); | ||
} | ||
} | ||
|
||
run().catch(error => { | ||
core.setFailed(error); | ||
setFailed(error); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.