-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (32 loc) · 1.06 KB
/
links.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
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * 1'
name: Check links
jobs:
link-checker:
name: Check links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo '/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin' >> $GITHUB_PATH
- run: brew install muffet
- name: Check
run: muffet --header 'user-agent:Curl' --ignore-fragments --json https://gitdocumentatie.logius.nl/publicatie/scripts/paths.html > muffet.json
continue-on-error: true
- name: Report
run: python ./scripts/muffet-json.py
- name: Send mail
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465
secure: true
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: Broken links on gitdocumentatie
to: ${{secrets.MAIL_RECIPIENTS}}
from: Standaarden Bot
html_body: file://links.md
ignore_cert: true
convert_markdown: true