Skip to content

Commit

Permalink
Trim commit message to not include description
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Apr 5, 2022
1 parent bc8bbe0 commit 4a274aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/actionparameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ActionParameters {
this._images = core.getInput('images');
this._multiContainerConfigFile = core.getInput('configuration-file');
this._startupCommand = core.getInput('startup-command');
this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message : "";
this._commitMessage = github.context.eventName === 'push' ? github.context.payload.head_commit.message.split(/\r?\n/)[0] : "";
this._endpoint = endpoint;
}
static getActionParams(endpoint) {
Expand Down
2 changes: 1 addition & 1 deletion src/actionparameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class ActionParameters {
this._images = core.getInput('images');
this._multiContainerConfigFile = core.getInput('configuration-file');
this._startupCommand = core.getInput('startup-command');
this._commitMessage = github.context.eventName === 'push'? github.context.payload.head_commit.message: "";
this._commitMessage = github.context.eventName === 'push'? github.context.payload.head_commit.message.split(/\r?\n/)[0] : "";
this._endpoint = endpoint;
}

Expand Down

0 comments on commit 4a274aa

Please sign in to comment.