mirror of
https://github.com/actions/setup-java.git
synced 2026-10-06 09:24:34 +03:00
Added support for GPG
This commit is contained in:
1 parent
5c87b70ffe
commit
d94db22179
17 files changed
+37442
-5142
No files matched your search
@@ -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();
|
||||
Reference in new issue
Block a user