fixed setSecret

This commit is contained in:
Jared Petersen 2020-05-22 21:30:38 -07:00
parent d94db22179
commit e494666ae9
2 changed files with 7 additions and 5 deletions

View file

@ -12,9 +12,6 @@ const DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
async function run() {
try {
// Set secrets before use
core.setSecret('gpg-private-key');
let version = core.getInput('version');
if (!version) {
version = core.getInput('java-version', {required: true});
@ -40,6 +37,10 @@ async function run() {
core.getInput('gpg-passphrase', {required: false}) ||
(gpgPrivateKey ? DEFAULT_GPG_PASSPHRASE : undefined);
if (gpgPrivateKey) {
core.setSecret(gpgPrivateKey);
}
await auth.configAuthentication(id, username, password, gpgPassphrase);
if (gpgPrivateKey) {