File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
template/.github/workflows Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 11name: link-check
22
33on:
4+ workflow_dispatch:
45 push:
56 branches:
67 - main
78 pull_request:
89 branches:
910 - main
1011 schedule:
11- - cron: '0 0 * * 0' # every Sunday at 00:00
12+ - cron: '0 0 1 * *' # first day of every month at midnight
13+
14+ permissions:
15+ contents: read
16+ issues: write
1217
1318jobs:
1419 linkChecker:
@@ -19,15 +24,15 @@ jobs:
1924 - name: Link Checker
2025 id: lychee
2126 uses: lycheeverse/lychee-action@v1
22- with:
23- # fail action if there are broken links
24- fail: true
27+
28+ - name: Set Issue Title
29+ id: set_title
30+ run: echo "ISSUE_TITLE=Link Checker Report - $(date '+%Y-%m-%d')" >> $GITHUB_ENV
2531
2632 - name: Create Issue From File
27- # create issues only when triggered by schedule
28- if: github.event_name == 'schedule' && env.lychee_exit_code != 0
33+ if: env.lychee_exit_code != 0
2934 uses: peter-evans/create-issue-from-file@v5
3035 with:
31- title: Link Checker Report
36+ title: ${{ env.ISSUE_TITLE }}
3237 content-filepath: ./lychee/out.md
3338 labels: report, automated issue
You can’t perform that action at this time.
0 commit comments