mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
Added support for GPG
This commit is contained in:
parent
5c87b70ffe
commit
d94db22179
17 changed files with 37442 additions and 5142 deletions
16
src/cleanup-java.ts
Normal file
16
src/cleanup-java.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import * as core from '@actions/core';
|
||||
import * as gpg from './gpg';
|
||||
|
||||
async function run() {
|
||||
if (core.getInput('gpg-private-key', {required: false})) {
|
||||
console.log('removing private key from keychain');
|
||||
try {
|
||||
const keyFingerprint = core.getState('gpg-private-key-fingerprint');
|
||||
await gpg.deleteKey(keyFingerprint);
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
run();
|
Loading…
Add table
Add a link
Reference in a new issue