Skip to content

Commit ad4b8c8

Browse files
committed
Only run docs deploy when docs have changed + remove console.log + smaller header
1 parent f9ac14c commit ad4b8c8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/scripts/docs/preview-deploy.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = async ({ github, context }) => {
2020
})
2121
).data;
2222

23-
const commentHeader = `## Docs preview deploy\n`;
23+
const commentHeader = `### Docs preview deploy\n`;
2424
let commentMessage = commentHeader;
2525

2626
let updateComment = existingComments.find(
@@ -85,7 +85,6 @@ module.exports = async ({ github, context }) => {
8585
repo: context.repo.repo,
8686
comment_id: updateComment.id,
8787
});
88-
console.log(latestComment);
8988

9089
if (!latestComment.data.body.includes(shortCommitSHA)) {
9190
console.log("Skipping further updates, new deployment has started");

.github/workflows/docs-preview-deploy.yml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)