fixing defaults

This commit is contained in:
Jared Petersen committed 2020-07-15 21:15:27 -06:00
1 parent 2d0e474aa9
commit 4d8dc69fc8
5 files changed
+8 -7

No files matched your search

+3 -3
View File
@@ -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);