feat: show workflow name in deafult commit message

Ref: #64
This commit is contained in:
Federico Grandi
2020-10-07 19:50:38 +02:00
parent 3f6e296fa8
commit 3088d83852
3 changed files with 6 additions and 2 deletions

View File

@@ -162,6 +162,11 @@ async function checkInputs() {
info(`> Using '${getInput('author_name')} <${getInput('author_email')}>' as author.`)
// #endregion
// #region message
setDefault('message', `Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`)
info(`> Using "${getInput('message')}" as commit message.`)
// #endregion
// #region branch
const branch = setDefault('branch', defaultBranch || '')
if (isPR) info(`> Running for a PR, the action will use '${branch}' as ref.`)