forked from RyanFitzgerald/devportfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1.04 KB
/
site_reliability.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
name: Site Reliability
on:
workflow_dispatch:
push:
branches:
- master
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 4 * * *'
jobs:
crawl_for_broken_links:
runs-on: ubuntu-latest
name: Broken-Links-Crawler
steps:
- name: Debug Action
uses: hmarr/debug-action@v1.0.0
- name: Checking links
id: checking
uses: ScholliYT/Broken-Links-Crawler-Action@v3
with:
website_url: 'https://tomstein.me'
exclude_url_prefix: 'mailto:,https://www.linkedin.com,https://linkedin.com,https://twitter.com'
verbose: 'true'
max_retry_time: 30
max_retries: 5
# Use the output from the `checking` step
- name: Telegram Message Notify on Error
uses: appleboy/telegram-action@0.0.5
if: failure()
id: notify_on_error_telegram
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
with:
args: Found broken links on https://tomstein.me/!