You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
body: `✅ All links are now working! Closing this issue.\n\nFixed in [workflow run](${context.payload.repository.html_url}/actions/runs/${context.runId}).`
64
+
});
65
+
66
+
await github.rest.issues.update({
67
+
owner: context.repo.owner,
68
+
repo: context.repo.repo,
69
+
issue_number: issue.number,
70
+
state: 'closed'
71
+
});
72
+
73
+
console.log(`Closed issue #${issue.number}`);
74
+
}
75
+
76
+
- name: Create or update issue on failure
44
77
if: failure()
45
78
uses: actions/github-script@v7
46
79
with:
47
80
script: |
48
81
const title = '🔗 Broken links detected';
49
-
const body = `The scheduled link check found broken links.\n\nCheck the [workflow run](${context.payload.repository.html_url}/actions/runs/${context.runId}) for details.`;
82
+
const body = `The link checker found broken links.\n\n**Workflow run:** ${context.payload.repository.html_url}/actions/runs/${context.runId}\n\n**Date:** ${new Date().toISOString()}\n\nPlease check the workflow run for details on which links are broken.`;
0 commit comments