-
Notifications
You must be signed in to change notification settings - Fork 53
51 lines (50 loc) · 1.62 KB
/
linkcheck.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
40
41
42
43
44
45
46
47
48
49
50
51
# This is workflow for spell checking using PySpelling lib (https://pypi.org/project/pyspelling/)
name: linkcheck_website
on:
# run two times a weekday
schedule:
- cron: '31 18 * * 2,4'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test_send_mail:
runs-on: ubuntu-latest
steps:
uses: dawidd6/action-send-mail@v3
with:
server_address: ${{secrets.MAIL_HOST}}
server_port: ${{secrets.MAIL_PORT}}
secure: true
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: Failed linkcheck
from: FusionAuth GitHub Actions
body: Linkcheck failed.
check_links:
runs-on: ubuntu-latest
steps:
# linkcheck
- uses: actions/checkout@v4
- uses: filiph/[email protected]
with:
arguments: https://fusionauth.io/ --skip-file config/linkcheck/linkcheck-skip.txt --connection-failures-as-warnings
name: linkcheck
- name: Send mail
send_mail_on_failure:
needs: check_links
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
uses: dawidd6/action-send-mail@v3
with:
server_address: ${{secrets.MAIL_HOST}}
server_port: ${{secrets.MAIL_PORT}}
secure: true
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: Failed linkcheck
from: FusionAuth GitHub Actions
body: Linkcheck failed.