FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
setup-java/src/cleanup-java.ts at main · ModProg/setup-java · GitHub
ModProg
/
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
/
cleanup-java.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (17 loc) · 517 Bytes
Breadcrumbs
setup-java
/
src
/
cleanup-java.ts
Copy path
File metadata and controls
19 lines (17 loc) · 517 Bytes
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
import
*
as
core
from
'@actions/core'
;
import
*
as
gpg
from
'./gpg'
;
import
*
as
constants
from
'./constants'
;
async
function
run
(
)
{
if
(
core
.
getInput
(
constants
.
INPUT_GPG_PRIVATE_KEY
,
{
required
:
false
}
)
)
{
core
.
info
(
'removing private key from keychain'
)
;
try
{
const
keyFingerprint
=
core
.
getState
(
constants
.
STATE_GPG_PRIVATE_KEY_FINGERPRINT
)
;
await
gpg
.
deleteKey
(
keyFingerprint
)
;
}
catch
(
error
)
{
core
.
setFailed
(
'failed to remove private key'
)
;
}
}
}
run
(
)
;
Back
|
FazBrowse Home
|
New Git URL