File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /**
2+ * Central location for label definitions to facilitate future changes.
3+ * This file serves as the single source of truth for all GitHub label names used by automated workflows.
4+ */
5+ module . exports = {
6+ LABEL_BROKEN_MARKDOWN_LINKS : 'notes: broken markdown links' ,
7+ LABEL_AUTOMATED : 'notes: automated'
8+ } ;
Original file line number Diff line number Diff line change 11name : Cron – Check Broken Markdown Links
22
3+ concurrency :
4+ group : cron-check-broken-markdown-links
5+ cancel-in-progress : false
6+
37on :
48 schedule :
59 - cron : " 0 0 1 * *"
@@ -42,12 +46,14 @@ jobs:
4246 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
4347 with :
4448 script : |
49+ const { LABEL_BROKEN_MARKDOWN_LINKS, LABEL_AUTOMATED } = require('./.github/scripts/labels.js');
50+
4551 // Determine if this is a dry run
4652 const isManual = context.eventName === 'workflow_dispatch';
4753 const dryRun = isManual ? String(context.payload.inputs.dry_run).toLowerCase() === 'true' : false;
4854
4955 // Labels configuration
50- const targetLabels = ['broken-markdown-links', 'automated' ];
56+ const targetLabels = [LABEL_BROKEN_MARKDOWN_LINKS, LABEL_AUTOMATED ];
5157 const issueTitle = "Scheduled Markdown Link Check Found Broken Links";
5258 const runUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
5359
You can’t perform that action at this time.
0 commit comments