File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class ActionParameters {
32
32
this . _images = core . getInput ( 'images' ) ;
33
33
this . _multiContainerConfigFile = core . getInput ( 'configuration-file' ) ;
34
34
this . _startupCommand = core . getInput ( 'startup-command' ) ;
35
- this . _commitMessage = github . context . eventName === 'push' ? github . context . payload . head_commit . message : "" ;
35
+ this . _commitMessage = github . context . eventName === 'push' ? github . context . payload . head_commit . message . split ( / \r ? \n / ) [ 0 ] : "" ;
36
36
this . _endpoint = endpoint ;
37
37
}
38
38
static getActionParams ( endpoint ) {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export class ActionParameters {
43
43
this . _images = core . getInput ( 'images' ) ;
44
44
this . _multiContainerConfigFile = core . getInput ( 'configuration-file' ) ;
45
45
this . _startupCommand = core . getInput ( 'startup-command' ) ;
46
- this . _commitMessage = github . context . eventName === 'push' ? github . context . payload . head_commit . message : "" ;
46
+ this . _commitMessage = github . context . eventName === 'push' ? github . context . payload . head_commit . message . split ( / \r ? \n / ) [ 0 ] : "" ;
47
47
this . _endpoint = endpoint ;
48
48
}
49
49
You can’t perform that action at this time.
0 commit comments