Skip to content

Commit

Permalink
action.yml: don't send logs if there is no openai key defined
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Feb 7, 2024
1 parent 3406262 commit 595d91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ runs:
}
try {
if (patchExplained === null && patch.type !== "simple" && logError.message !== "debounce") {
if (options.openai_api_key !== null && patchExplained === null && patch.type !== "simple" && logError.message !== "debounce") {
patchExplained = patch.watermark+"\n\n"+`logError ${logError.message}`;
}
Expand Down

0 comments on commit 595d91c

Please sign in to comment.