Skip to content

Commit

Permalink
fix skip token message
Browse files Browse the repository at this point in the history
  • Loading branch information
leordev committed Sep 29, 2023
1 parent 14763a7 commit cc7f9b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/docs-report/comment-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ const getMessageLog = (
}

const pushComment = async (commentBody: string): Promise<void> => {
if (!configInputs.token) {
console.info('>>> Skipping pushing comment. Missing token...')
if (!configInputs.token && !configInputs.botAppId) {
console.info(
'>>> Skipping pushing comment. Missing credentials (token or botAppId)...'
)
return
}

Expand Down

0 comments on commit cc7f9b0

Please sign in to comment.