We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbbcae9 commit 116c918Copy full SHA for 116c918
src/main.ts
@@ -17,7 +17,7 @@ function checkInputs() {
17
setDefault('author_name', author.name)
18
setDefault('author_email', author.email)
19
} else {
20
- warning(`Unable to fetch author info: couldn't find ${!eventPath ? 'event path' : !require(eventPath)?.head_commit ? 'commit' : 'commit author'}.`)
+ if (!getInput('author_name') || !getInput('author_email')) warning(`Unable to fetch author info: couldn't find ${!eventPath ? 'event path' : !require(eventPath)?.head_commit ? 'commit' : 'commit author'}.`)
21
setDefault('author_name', 'Add & Commit Action')
22
setDefault('author_email', '[email protected]')
23
}
0 commit comments