fixed configAuthentication invokation

This commit is contained in:
Jared Petersen 2020-05-02 16:39:19 -07:00
parent 01f7e3b3fd
commit e09c5c7b0c
2 changed files with 6 additions and 6 deletions

4
dist/index.js generated vendored
View file

@ -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);

View file

@ -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);