mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 17:36:45 +00:00
fixed configAuthentication invokation
This commit is contained in:
parent
01f7e3b3fd
commit
e09c5c7b0c
2 changed files with 6 additions and 6 deletions
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue