-
Notifications
You must be signed in to change notification settings - Fork 23
36 lines (34 loc) · 1.13 KB
/
dead_url_linter.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
name: Link Checker
on:
workflow_dispatch:
schedule:
# Runs at 00:00 UTC every Monday
- cron: '0 0 * * 1'
jobs:
link_check:
name: Check Links
runs-on: ubuntu-latest
strategy:
matrix:
url:
- https://dev-orchestrator.abstract.money
- https://dev-docs.abstract.money
steps:
- name: Check links at ${{ matrix.url }}
id: linkcheck
uses: filiph/[email protected]
with:
arguments: ${{ matrix.url }}
- name: Notify on failure
if: ${{ failure() }}
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.LINTER_WEBHOOK_ID }}
webhook_token: ${{ secrets.LINTER_WEBHOOK_TOKEN }}
username: Abstract Link Checker
avatar_url: https://d1nhio0ox7pgb.cloudfront.net/_img/g_collection_png/standard/256x256/link_broken.png
message: |
**:red_circle: Link Check Failed**
**URL Checked:** ${{ matrix.url }}
**Status:** Failure :x:
**Action Details:** [View Run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})