Skip to content

Commit 25d8a9b

Browse files
authored
Update broken-links.yml
Fix again
1 parent d0fb054 commit 25d8a9b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/broken-links.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ jobs:
4242
with:
4343
script: |
4444
const report = process.env.REPORT;
45-
const body = process.env.broken_links === 'true'
45+
const brokenLinks = process.env.broken_links === 'true';
46+
const body = brokenLinks
4647
? `### ⚠️ Broken Links Found\nHi @GarlicRot, the following broken links were detected:\n\`\`\`\n${report}\n\`\`\`\nPlease address them!`
4748
: `### ✅ All Links Valid\nHi @GarlicRot, all links in the README are valid! Great job!`;
4849
await github.rest.issues.createComment({
4950
owner: context.repo.owner,
5051
repo: context.repo.repo,
51-
issue_number: context.runId,
52-
body,
52+
issue_number: context.payload.head_commit.id,
53+
body: body,
5354
});

0 commit comments

Comments
 (0)