From e09c5c7b0ca64702bcd6a7dc80ae16d7182ca5ba Mon Sep 17 00:00:00 2001 From: Jared Petersen Date: Sat, 2 May 2020 16:39:19 -0700 Subject: [PATCH] fixed configAuthentication invokation --- dist/index.js | 4 ++-- src/setup-java.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 02a84d71..de2b10d2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4595,9 +4595,9 @@ function run() { 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; - const gpgPassphrase = core.getInput('gpg-passphrase', { required: false }) || undefined; const gpgPrivateKey = core.getInput('gpg-private-key', { required: false }) || undefined; - yield auth.configAuthentication(id, username, password, gpgPassphrase, gpgPrivateKey); + const gpgPassphrase = core.getInput('gpg-passphrase', { required: false }) || undefined; + yield auth.configAuthentication(id, username, password, gpgPrivateKey, gpgPassphrase); } catch (error) { core.setFailed(error.message); diff --git a/src/setup-java.ts b/src/setup-java.ts index df53a756..d5eb18ab 100644 --- a/src/setup-java.ts +++ b/src/setup-java.ts @@ -26,17 +26,17 @@ async function run() { core.getInput('server-username', {required: false}) || undefined; const password = core.getInput('server-password', {required: false}) || undefined; - const gpgPassphrase = - core.getInput('gpg-passphrase', {required: false}) || undefined; const gpgPrivateKey = core.getInput('gpg-private-key', {required: false}) || undefined; + const gpgPassphrase = + core.getInput('gpg-passphrase', {required: false}) || undefined; await auth.configAuthentication( id, username, password, - gpgPassphrase, - gpgPrivateKey + gpgPrivateKey, + gpgPassphrase ); } catch (error) { core.setFailed(error.message);