linkcheck_website #185
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is workflow for checking links | |
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: | |
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 | |
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}} | |
username: ${{secrets.MAIL_USERNAME}} | |
password: ${{secrets.MAIL_PASSWORD}} | |
subject: Failed linkcheck2 | |
to: ${{secrets.WEBSITE_SLACK_CHANNEL_NOTIFICATION_EMAIL}} | |
from: FusionAuth GitHub Actions <[email protected]> | |
body: "Linkcheck failed, https://github.com/FusionAuth/fusionauth-site/actions/workflows/linkcheck.yml has more." |