-
Notifications
You must be signed in to change notification settings - Fork 37
43 lines (36 loc) · 1007 Bytes
/
url-checks.yaml
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
40
41
42
43
on:
schedule:
# Every Monday at 6 am
- cron: '0 6 * * 1'
workflow_dispatch:
concurrency:
group: url-${{ github.ref }}
cancel-in-progress: true
name: Broken URL check
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: "20"
- name: URL Checker
run: make verify-url-links-ci
- name: URL Rate Limit Checker
run: make verify-rate-limited-links-ci
- name: Post Comment
run: |
cd scripts
./url-checker.sh
env:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}