-
Notifications
You must be signed in to change notification settings - Fork 22
39 lines (35 loc) · 1.11 KB
/
broken-links-checker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Broken Links Checker
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
workflow_run:
workflows: [pages-build-deployment]
types:
- completed
jobs:
check-for-broken-links:
runs-on: ubuntu-latest
steps:
- name: Check Links
uses: ScholliYT/Broken-Links-Crawler-Action@v3
with:
website_url: 'https://rsocket.io'
exclude_url_prefix: 'mailto:,https://www.linkedin.com,https://linkedin.com,https://www.googletagmanager.com,https://twitter.com'
verbose: 'true'
max_retry_time: 30
max_retries: 5
max_depth: 1
- name: Checkout Source
if: failure()
uses: actions/checkout@v3
- name: Create Github Issue
if: failure()
uses: JasonEtco/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
with:
filename: .github/broken-links-issue-template.md
update_existing: true
search_existing: open