mirror of
https://github.com/actions/setup-java.git
synced 2024-12-25 08:22:16 -05:00
fixing defaults
This commit is contained in:
parent
2d0e474aa9
commit
4d8dc69fc8
5 changed files with 8 additions and 7 deletions
|
@ -21,7 +21,6 @@ inputs:
|
||||||
description: 'Path to where the compressed JDK is located. The path could
|
description: 'Path to where the compressed JDK is located. The path could
|
||||||
be in your source repository or a local path on the agent.'
|
be in your source repository or a local path on the agent.'
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
|
||||||
server-id:
|
server-id:
|
||||||
description: 'ID of the distributionManagement repository in the pom.xml
|
description: 'ID of the distributionManagement repository in the pom.xml
|
||||||
file. Default is `github`'
|
file. Default is `github`'
|
||||||
|
|
1
dist/cleanup/index.js
vendored
1
dist/cleanup/index.js
vendored
|
@ -965,6 +965,7 @@ exports.INPUT_SERVER_PASSWORD = 'server-password';
|
||||||
exports.INPUT_SETTINGS_PATH = 'settings-path';
|
exports.INPUT_SETTINGS_PATH = 'settings-path';
|
||||||
exports.INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
|
exports.INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
|
||||||
exports.INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
|
exports.INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
|
||||||
|
exports.INPUT_DEFAULT_GPG_PRIVATE_KEY = undefined;
|
||||||
exports.INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
|
exports.INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
|
||||||
exports.STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';
|
exports.STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';
|
||||||
|
|
||||||
|
|
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -25665,6 +25665,7 @@ exports.INPUT_SERVER_PASSWORD = 'server-password';
|
||||||
exports.INPUT_SETTINGS_PATH = 'settings-path';
|
exports.INPUT_SETTINGS_PATH = 'settings-path';
|
||||||
exports.INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
|
exports.INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
|
||||||
exports.INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
|
exports.INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
|
||||||
|
exports.INPUT_DEFAULT_GPG_PRIVATE_KEY = undefined;
|
||||||
exports.INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
|
exports.INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
|
||||||
exports.STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';
|
exports.STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';
|
||||||
|
|
||||||
|
@ -28698,9 +28699,8 @@ function run() {
|
||||||
const password = core.getInput(constants.INPUT_SERVER_PASSWORD, {
|
const password = core.getInput(constants.INPUT_SERVER_PASSWORD, {
|
||||||
required: false
|
required: false
|
||||||
});
|
});
|
||||||
const gpgPrivateKey = core.getInput(constants.INPUT_GPG_PRIVATE_KEY, {
|
const gpgPrivateKey = core.getInput(constants.INPUT_GPG_PRIVATE_KEY, { required: false }) ||
|
||||||
required: false
|
constants.INPUT_DEFAULT_GPG_PRIVATE_KEY;
|
||||||
});
|
|
||||||
const gpgPassphrase = core.getInput(constants.INPUT_GPG_PASSPHRASE, { required: false }) ||
|
const gpgPassphrase = core.getInput(constants.INPUT_GPG_PASSPHRASE, { required: false }) ||
|
||||||
(gpgPrivateKey ? constants.INPUT_DEFAULT_GPG_PASSPHRASE : undefined);
|
(gpgPrivateKey ? constants.INPUT_DEFAULT_GPG_PASSPHRASE : undefined);
|
||||||
if (gpgPrivateKey) {
|
if (gpgPrivateKey) {
|
||||||
|
|
|
@ -10,6 +10,7 @@ export const INPUT_SETTINGS_PATH = 'settings-path';
|
||||||
export const INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
|
export const INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
|
||||||
export const INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
|
export const INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
|
||||||
|
|
||||||
|
export const INPUT_DEFAULT_GPG_PRIVATE_KEY = undefined;
|
||||||
export const INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
|
export const INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
|
||||||
|
|
||||||
export const STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';
|
export const STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';
|
||||||
|
|
|
@ -29,9 +29,9 @@ async function run() {
|
||||||
const password = core.getInput(constants.INPUT_SERVER_PASSWORD, {
|
const password = core.getInput(constants.INPUT_SERVER_PASSWORD, {
|
||||||
required: false
|
required: false
|
||||||
});
|
});
|
||||||
const gpgPrivateKey = core.getInput(constants.INPUT_GPG_PRIVATE_KEY, {
|
const gpgPrivateKey =
|
||||||
required: false
|
core.getInput(constants.INPUT_GPG_PRIVATE_KEY, {required: false}) ||
|
||||||
});
|
constants.INPUT_DEFAULT_GPG_PRIVATE_KEY;
|
||||||
const gpgPassphrase =
|
const gpgPassphrase =
|
||||||
core.getInput(constants.INPUT_GPG_PASSPHRASE, {required: false}) ||
|
core.getInput(constants.INPUT_GPG_PASSPHRASE, {required: false}) ||
|
||||||
(gpgPrivateKey ? constants.INPUT_DEFAULT_GPG_PASSPHRASE : undefined);
|
(gpgPrivateKey ? constants.INPUT_DEFAULT_GPG_PASSPHRASE : undefined);
|
||||||
|
|
Loading…
Reference in a new issue