Commit 4d8dc69f authored by Jared Petersen's avatar Jared Petersen
Browse files

fixing defaults

parent 2d0e474a
Loading
Loading
Loading
Loading
−1
Changes for action.yml: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ inputs:
    description: 'Path to where the compressed JDK is located. The path could
       be in your source repository or a local path on the agent.'
    required: false
    default: ''
  server-id:
    description: 'ID of the distributionManagement repository in the pom.xml
       file. Default is `github`'
+1
Changes for dist/cleanup/index.js: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -965,6 +965,7 @@ exports.INPUT_SERVER_PASSWORD = 'server-password';
exports.INPUT_SETTINGS_PATH = 'settings-path';
exports.INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
exports.INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
exports.INPUT_DEFAULT_GPG_PRIVATE_KEY = undefined;
exports.INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
exports.STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';

+3 −3
Changes for dist/setup/index.js: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -25665,6 +25665,7 @@ exports.INPUT_SERVER_PASSWORD = 'server-password';
exports.INPUT_SETTINGS_PATH = 'settings-path';
exports.INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
exports.INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
exports.INPUT_DEFAULT_GPG_PRIVATE_KEY = undefined;
exports.INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
exports.STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';
@@ -28698,9 +28699,8 @@ function run() {
            const password = core.getInput(constants.INPUT_SERVER_PASSWORD, {
                required: false
            });
            const gpgPrivateKey = core.getInput(constants.INPUT_GPG_PRIVATE_KEY, {
                required: false
            });
            const gpgPrivateKey = core.getInput(constants.INPUT_GPG_PRIVATE_KEY, { required: false }) ||
                constants.INPUT_DEFAULT_GPG_PRIVATE_KEY;
            const gpgPassphrase = core.getInput(constants.INPUT_GPG_PASSPHRASE, { required: false }) ||
                (gpgPrivateKey ? constants.INPUT_DEFAULT_GPG_PASSPHRASE : undefined);
            if (gpgPrivateKey) {
+1
Changes for src/constants.ts: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ export const INPUT_SETTINGS_PATH = 'settings-path';
export const INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
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 STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';
+3 −3
Changes for src/setup-java.ts: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -29,9 +29,9 @@ async function run() {
    const password = core.getInput(constants.INPUT_SERVER_PASSWORD, {
      required: false
    });
    const gpgPrivateKey = core.getInput(constants.INPUT_GPG_PRIVATE_KEY, {
      required: false
    });
    const gpgPrivateKey =
      core.getInput(constants.INPUT_GPG_PRIVATE_KEY, {required: false}) ||
      constants.INPUT_DEFAULT_GPG_PRIVATE_KEY;
    const gpgPassphrase =
      core.getInput(constants.INPUT_GPG_PASSPHRASE, {required: false}) ||
      (gpgPrivateKey ? constants.INPUT_DEFAULT_GPG_PASSPHRASE : undefined);