mirror of
https://github.com/actions/setup-java.git
synced 2025-04-22 02:46:46 +00:00
format & build
This commit is contained in:
parent
d00ebda289
commit
6d0f35f2d4
2 changed files with 6 additions and 2 deletions
|
@ -34,7 +34,9 @@ async function run() {
|
|||
.toString()
|
||||
.trim();
|
||||
const semverRegExp = /(?<version>(?<=(^|\s|\-))(\d+\S*))(\s|$)/;
|
||||
let version = contents.match(semverRegExp)?.groups?.version ? contents.match(semverRegExp)?.groups?.version as string : '';
|
||||
let version = contents.match(semverRegExp)?.groups?.version
|
||||
? (contents.match(semverRegExp)?.groups?.version as string)
|
||||
: '';
|
||||
let installed = false;
|
||||
while (!installed && version != '') {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue