File tree Expand file tree Collapse file tree 5 files changed +6
-38
lines changed Expand file tree Collapse file tree 5 files changed +6
-38
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,6 @@ Add a step like this to your workflow:
77
77
# Default: ''
78
78
remove : ' ./dir/old_file.js'
79
79
80
- # Whether to use the --signoff option on `git commit` (only boolean values accepted*)
81
- # Default: false
82
- signoff : true
83
-
84
80
# Arguments for the git tag command (the tag name always needs to be the first word not preceded by an hyphen)
85
81
# Default: ''
86
82
tag : ' v1.0.0 --force'
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ inputs:
19
19
description : How the action should behave when the targeted branch is missing
20
20
required : false
21
21
default : throw
22
+ commit :
23
+ description : Additional arguments for the git commit command
24
+ required : false
22
25
committer_name :
23
26
description : The name of the custom committer you want to use
24
27
required : false
@@ -56,9 +59,6 @@ inputs:
56
59
remove :
57
60
description : Arguments for the git rm command
58
61
required : false
59
- signoff :
60
- description : Whether to use the --signoff option on git commit
61
- required : false
62
62
tag :
63
63
description : Arguments for the git tag command (the tag name always needs to be the first word not preceded by a hyphen)
64
64
required : false
Original file line number Diff line number Diff line change @@ -97,14 +97,7 @@ core.info(`Running in ${baseDir}`)
97
97
core . info ( '> Creating commit...' )
98
98
await git . commit (
99
99
getInput ( 'message' ) ,
100
- undefined ,
101
- {
102
- ...( getInput ( 'signoff' )
103
- ? {
104
- '--signoff' : null
105
- }
106
- : { } )
107
- } ,
100
+ matchGitArgs ( getInput ( 'commit' ) || '' ) ,
108
101
( err , data ?: CommitSummary ) => {
109
102
if ( data ) {
110
103
setOutput ( 'committed' , 'true' )
@@ -404,27 +397,6 @@ async function checkInputs() {
404
397
}
405
398
// #endregion
406
399
407
- // #region signoff
408
- if ( getInput ( 'signoff' ) ) {
409
- const parsed = getInput ( 'signoff' , true )
410
-
411
- if ( parsed === undefined )
412
- throw new Error (
413
- `"${ getInput (
414
- 'signoff'
415
- ) } " is not a valid value for the 'signoff' input: only "true" and "false" are allowed.`
416
- )
417
-
418
- if ( ! parsed ) setInput ( 'signoff' , undefined )
419
-
420
- core . debug (
421
- `Current signoff option: ${ getInput ( 'signoff' ) } (${ typeof getInput (
422
- 'signoff'
423
- ) } )`
424
- )
425
- }
426
- // #endregion
427
-
428
400
// #region github_token
429
401
if ( ! getInput ( 'github_token' ) )
430
402
core . warning (
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ interface InputTypes {
9
9
author_email : string
10
10
branch : string
11
11
branch_mode : 'throw' | 'create'
12
+ commit : string | undefined
12
13
committer_name : string
13
14
committer_email : string
14
15
cwd : string
@@ -19,7 +20,6 @@ interface InputTypes {
19
20
pull_strategy : string | undefined
20
21
push : string
21
22
remove : string | undefined
22
- signoff : undefined
23
23
tag : string | undefined
24
24
25
25
github_token : string | undefined
You can’t perform that action at this time.
0 commit comments