mirror of
https://github.com/mshick/add-pr-comment.git
synced 2025-12-31 22:29:45 +11:00
messagePath is not an array
This commit is contained in:
parent
7f44ca3b15
commit
3db21c2292
1 changed files with 2 additions and 2 deletions
|
|
@ -39,13 +39,13 @@ export async function getInputs(): Promise<Inputs> {
|
|||
core.getInput('refresh-message-position', { required: false }) === 'true'
|
||||
const updateOnly = core.getInput('update-only', { required: false }) === 'true'
|
||||
|
||||
if (messageInput && messagePath.length) {
|
||||
if (messageInput && messagePath) {
|
||||
throw new Error('must specify only one, message or message-path')
|
||||
}
|
||||
|
||||
let message
|
||||
|
||||
if (messagePath.length) {
|
||||
if (messagePath) {
|
||||
message = await getMessageFromPaths(messagePath)
|
||||
} else {
|
||||
message = messageInput
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue