@@ -35,7 +35,7 @@ Add a step like this to your workflow:
|
|||||||
cwd: './path/to/the/repo'
|
cwd: './path/to/the/repo'
|
||||||
|
|
||||||
# The message for the commit
|
# The message for the commit
|
||||||
# Default: 'Commit from GitHub Actions'
|
# Default: 'Commit from GitHub Actions (name of the workflow)'
|
||||||
message: 'Your commit message'
|
message: 'Your commit message'
|
||||||
|
|
||||||
# The arguments for the `git rm` command (see the paragraph below for more info)
|
# The arguments for the `git rm` command (see the paragraph below for more info)
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ inputs:
|
|||||||
message:
|
message:
|
||||||
description: The message for the commit
|
description: The message for the commit
|
||||||
required: false
|
required: false
|
||||||
default: Commit from GitHub Actions
|
|
||||||
remove:
|
remove:
|
||||||
description: Arguments for the git rm command
|
description: Arguments for the git rm command
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
@@ -162,6 +162,11 @@ async function checkInputs() {
|
|||||||
info(`> Using '${getInput('author_name')} <${getInput('author_email')}>' as author.`)
|
info(`> Using '${getInput('author_name')} <${getInput('author_email')}>' as author.`)
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
|
// #region message
|
||||||
|
setDefault('message', `Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`)
|
||||||
|
info(`> Using "${getInput('message')}" as commit message.`)
|
||||||
|
// #endregion
|
||||||
|
|
||||||
// #region branch
|
// #region branch
|
||||||
const branch = setDefault('branch', defaultBranch || '')
|
const branch = setDefault('branch', defaultBranch || '')
|
||||||
if (isPR) info(`> Running for a PR, the action will use '${branch}' as ref.`)
|
if (isPR) info(`> Running for a PR, the action will use '${branch}' as ref.`)
|
||||||
|
|||||||
Reference in New Issue
Block a user