FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
setup-java/src/setup-java.ts at master · verilycloud-dev/setup-java · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
verilycloud-dev
/
setup-java
Public
forked from
actions/setup-java
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
setup-java
/
src
/
setup-java.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (27 loc) · 1.09 KB
Breadcrumbs
setup-java
/
src
/
setup-java.ts
Copy path
File metadata and controls
33 lines (27 loc) · 1.09 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import
*
as
core
from
'@actions/core'
;
import
*
as
installer
from
'./installer'
;
import
*
as
auth
from
'./auth'
;
import
*
as
path
from
'path'
;
async
function
run
(
)
{
try
{
let
version
=
core
.
getInput
(
'version'
)
;
if
(
!
version
)
{
version
=
core
.
getInput
(
'java-version'
,
{
required
:
true
}
)
;
}
const
arch
=
core
.
getInput
(
'architecture'
,
{
required
:
true
}
)
;
const
javaPackage
=
core
.
getInput
(
'java-package'
,
{
required
:
true
}
)
;
const
jdkFile
=
core
.
getInput
(
'jdkFile'
,
{
required
:
false
}
)
||
''
;
await
installer
.
getJava
(
version
,
arch
,
jdkFile
,
javaPackage
)
;
const
matchersPath
=
path
.
join
(
__dirname
,
'..'
,
'.github'
)
;
console
.
log
(
`##[add-matcher]
${
path
.
join
(
matchersPath
,
'java.json'
)
}
`
)
;
const
id
=
core
.
getInput
(
'server-id'
,
{
required
:
false
}
)
||
undefined
;
const
username
=
core
.
getInput
(
'server-username'
,
{
required
:
false
}
)
||
undefined
;
const
password
=
core
.
getInput
(
'server-password'
,
{
required
:
false
}
)
||
undefined
;
await
auth
.
configAuthentication
(
id
,
username
,
password
)
;
}
catch
(
error
)
{
core
.
setFailed
(
error
.
message
)
;
}
}
run
(
)
;
Back
|
FazBrowse Home
|
New Git URL