File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ inputs:
21
21
description : ' Path to where the compressed JDK is located. The path could
22
22
be in your source repository or a local path on the agent.'
23
23
required : false
24
- default : ' '
25
24
server-id :
26
25
description : ' ID of the distributionManagement repository in the pom.xml
27
26
file. Default is `github`'
Original file line number Diff line number Diff line change @@ -965,6 +965,7 @@ exports.INPUT_SERVER_PASSWORD = 'server-password';
965
965
exports . INPUT_SETTINGS_PATH = 'settings-path' ;
966
966
exports . INPUT_GPG_PRIVATE_KEY = 'gpg-private-key' ;
967
967
exports . INPUT_GPG_PASSPHRASE = 'gpg-passphrase' ;
968
+ exports . INPUT_DEFAULT_GPG_PRIVATE_KEY = undefined ;
968
969
exports . INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE' ;
969
970
exports . STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint' ;
970
971
Original file line number Diff line number Diff line change @@ -25665,6 +25665,7 @@ exports.INPUT_SERVER_PASSWORD = 'server-password';
25665
25665
exports.INPUT_SETTINGS_PATH = 'settings-path';
25666
25666
exports.INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
25667
25667
exports.INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
25668
+ exports.INPUT_DEFAULT_GPG_PRIVATE_KEY = undefined;
25668
25669
exports.INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
25669
25670
exports.STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';
25670
25671
@@ -28698,9 +28699,8 @@ function run() {
28698
28699
const password = core.getInput(constants.INPUT_SERVER_PASSWORD, {
28699
28700
required: false
28700
28701
});
28701
- const gpgPrivateKey = core.getInput(constants.INPUT_GPG_PRIVATE_KEY, {
28702
- required: false
28703
- });
28702
+ const gpgPrivateKey = core.getInput(constants.INPUT_GPG_PRIVATE_KEY, { required: false }) ||
28703
+ constants.INPUT_DEFAULT_GPG_PRIVATE_KEY;
28704
28704
const gpgPassphrase = core.getInput(constants.INPUT_GPG_PASSPHRASE, { required: false }) ||
28705
28705
(gpgPrivateKey ? constants.INPUT_DEFAULT_GPG_PASSPHRASE : undefined);
28706
28706
if (gpgPrivateKey) {
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export const INPUT_SETTINGS_PATH = 'settings-path';
10
10
export const INPUT_GPG_PRIVATE_KEY = 'gpg-private-key' ;
11
11
export const INPUT_GPG_PASSPHRASE = 'gpg-passphrase' ;
12
12
13
+ export const INPUT_DEFAULT_GPG_PRIVATE_KEY = undefined ;
13
14
export const INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE' ;
14
15
15
16
export const STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint' ;
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ async function run() {
29
29
const password = core . getInput ( constants . INPUT_SERVER_PASSWORD , {
30
30
required : false
31
31
} ) ;
32
- const gpgPrivateKey = core . getInput ( constants . INPUT_GPG_PRIVATE_KEY , {
33
- required : false
34
- } ) ;
32
+ const gpgPrivateKey =
33
+ core . getInput ( constants . INPUT_GPG_PRIVATE_KEY , { required : false } ) ||
34
+ constants . INPUT_DEFAULT_GPG_PRIVATE_KEY ;
35
35
const gpgPassphrase =
36
36
core . getInput ( constants . INPUT_GPG_PASSPHRASE , { required : false } ) ||
37
37
( gpgPrivateKey ? constants . INPUT_DEFAULT_GPG_PASSPHRASE : undefined ) ;
You can’t perform that action at this time.
0 commit comments