@@ -33,45 +33,47 @@ var TestFlag;
33
33
} ) ( TestFlag = exports . TestFlag || ( exports . TestFlag = { } ) ) ;
34
34
/* Required action data that gets initialized when running within the GitHub Actions environment. */
35
35
exports . action = {
36
- folder : core_1 . getInput ( 'FOLDER ' ) ,
37
- branch : core_1 . getInput ( 'BRANCH ' ) ,
38
- commitMessage : core_1 . getInput ( 'COMMIT_MESSAGE ' ) ,
39
- dryRun : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'DRY_RUN ' ) )
40
- ? core_1 . getInput ( 'DRY_RUN ' ) . toLowerCase ( ) === 'true'
36
+ folder : core_1 . getInput ( 'folder ' ) ,
37
+ branch : core_1 . getInput ( 'branch ' ) ,
38
+ commitMessage : core_1 . getInput ( 'commit-message ' ) ,
39
+ dryRun : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'dry-run ' ) )
40
+ ? core_1 . getInput ( 'dry-run ' ) . toLowerCase ( ) === 'true'
41
41
: false ,
42
- clean : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'CLEAN ' ) )
43
- ? core_1 . getInput ( 'CLEAN ' ) . toLowerCase ( ) === 'true'
42
+ clean : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'clean ' ) )
43
+ ? core_1 . getInput ( 'clean ' ) . toLowerCase ( ) === 'true'
44
44
: false ,
45
- cleanExclude : core_1 . getInput ( 'CLEAN_EXCLUDE' ) ,
45
+ cleanExclude : ( core_1 . getInput ( 'clean-exclude' ) || '' )
46
+ . split ( '\n' )
47
+ . filter ( l => l !== '' ) ,
46
48
isTest : TestFlag . NONE ,
47
- email : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'GIT_CONFIG_EMAIL ' ) )
48
- ? core_1 . getInput ( 'GIT_CONFIG_EMAIL ' )
49
+ email : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'git-config-email ' ) )
50
+ ? core_1 . getInput ( 'git-config-email ' )
49
51
: pusher && pusher . email
50
52
? pusher . email
51
53
: `${ process . env . GITHUB_ACTOR || 'github-pages-deploy-action' } @users.noreply.github.com` ,
52
- name : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'GIT_CONFIG_NAME ' ) )
53
- ? core_1 . getInput ( 'GIT_CONFIG_NAME ' )
54
+ name : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'git-config-name ' ) )
55
+ ? core_1 . getInput ( 'git-config-name ' )
54
56
: pusher && pusher . name
55
57
? pusher . name
56
58
: process . env . GITHUB_ACTOR
57
59
? process . env . GITHUB_ACTOR
58
60
: 'GitHub Pages Deploy Action' ,
59
- repositoryName : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'REPOSITORY_NAME ' ) )
60
- ? core_1 . getInput ( 'REPOSITORY_NAME ' )
61
+ repositoryName : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'repository-name ' ) )
62
+ ? core_1 . getInput ( 'repository-name ' )
61
63
: repository && repository . full_name
62
64
? repository . full_name
63
65
: process . env . GITHUB_REPOSITORY ,
64
- token : core_1 . getInput ( 'TOKEN ' ) ,
65
- singleCommit : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'SINGLE_COMMIT ' ) )
66
- ? core_1 . getInput ( 'SINGLE_COMMIT ' ) . toLowerCase ( ) === 'true'
66
+ token : core_1 . getInput ( 'token ' ) ,
67
+ singleCommit : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'single-commit ' ) )
68
+ ? core_1 . getInput ( 'single-commit ' ) . toLowerCase ( ) === 'true'
67
69
: false ,
68
- silent : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'SILENT ' ) )
69
- ? core_1 . getInput ( 'SILENT ' ) . toLowerCase ( ) === 'true'
70
+ silent : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'silent ' ) )
71
+ ? core_1 . getInput ( 'silent ' ) . toLowerCase ( ) === 'true'
70
72
: false ,
71
- ssh : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'SSH ' ) )
72
- ? core_1 . getInput ( 'SSH ' ) . toLowerCase ( ) === 'true'
73
+ ssh : ! util_1 . isNullOrUndefined ( core_1 . getInput ( 'ssh ' ) )
74
+ ? core_1 . getInput ( 'ssh ' ) . toLowerCase ( ) === 'true'
73
75
: false ,
74
- targetFolder : core_1 . getInput ( 'TARGET_FOLDER ' ) ,
76
+ targetFolder : core_1 . getInput ( 'target-folder ' ) ,
75
77
workspace : process . env . GITHUB_WORKSPACE || ''
76
78
} ;
77
79
/** Status codes for the action. */
0 commit comments