Skip to content

Commit

Permalink
Fix black and white build error due to already created colored pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
NontasBak committed Oct 25, 2024
1 parent d0ddef9 commit 8f218b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function getChangedLessons() {
file.endsWith(".pdf")
);

if (changedPDFs.length > 0) {
if (changedPDFs.length > 0 && !isBlackAndWhite) {
throw new Error(
"PDFs were changed, no need to rebuild through GH actions."
);
Expand Down

0 comments on commit 8f218b6

Please sign in to comment.