File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ Add a step like this to your workflow:
35
35
cwd : ' ./path/to/the/repo'
36
36
37
37
# The message for the commit
38
- # Default: 'Commit from GitHub Actions'
38
+ # Default: 'Commit from GitHub Actions (name of the workflow) '
39
39
message : ' Your commit message'
40
40
41
41
# The arguments for the `git rm` command (see the paragraph below for more info)
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ inputs:
22
22
message :
23
23
description : The message for the commit
24
24
required : false
25
- default : Commit from GitHub Actions
26
25
remove :
27
26
description : Arguments for the git rm command
28
27
required : false
Original file line number Diff line number Diff line change @@ -162,6 +162,11 @@ async function checkInputs() {
162
162
info ( `> Using '${ getInput ( 'author_name' ) } <${ getInput ( 'author_email' ) } >' as author.` )
163
163
// #endregion
164
164
165
+ // #region message
166
+ setDefault ( 'message' , `Commit from GitHub Actions (${ process . env . GITHUB_WORKFLOW } )` )
167
+ info ( `> Using "${ getInput ( 'message' ) } " as commit message.` )
168
+ // #endregion
169
+
165
170
// #region branch
166
171
const branch = setDefault ( 'branch' , defaultBranch || '' )
167
172
if ( isPR ) info ( `> Running for a PR, the action will use '${ branch } ' as ref.` )
You can’t perform that action at this time.
0 commit comments