Skip to content

Commit

Permalink
chore: build action
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 20, 2024
1 parent ad29f8a commit f637756
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40680,17 +40680,20 @@ const action = () => run(async () => {
remoteName: getInput('remoteName') ?? 'origin',
message: getInput('message', { required: true }),
amend: getInput('amend') === 'true',
allowEmpty: getInput('allow-empty') === 'true',
};
process.chdir(input.workingDirectory);
const commitArgs = [
'--message', input.message,
];
if (input.amend)
commitArgs.push('--amend');
if (input.allowEmpty)
commitArgs.push('--allow-empty');
const commitResult = await actions_exec('git', [
'-c', 'user.name=github-actions[bot]',
'-c', 'user.email=41898282+github-actions[bot]@users.noreply.github.com',
'commit', ...commitArgs
'commit', ...commitArgs,
]);
if (commitResult.status !== 0) {
core.info(commitResult.stderr.toString());
Expand Down

0 comments on commit f637756

Please sign in to comment.