Check broken links #592
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
name: Check broken links | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 8 * * *' # Run every day at 08:00 UTC | |
jobs: | |
broken-link-checker: | |
name: Check broken links | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check | |
uses: ruzickap/[email protected] | |
with: | |
url: https://boxyhq.com | |
cmd_params: '--max-connections=10 --timeout=60 --buffer-size=16384 --color=always --exclude="(localhost|127.0.0.1|twitter.com|linkedin.com|manage.auth0.com|schemas.xmlsoap.org|instagram.com|admin.google.com|https://segment.com)" --skip-tls-verification --ignore-fragments --header="User-Agent:Chrome/108.0.0.0"' | |
- name: Post to Slack | |
if: ${{ failure() }} | |
uses: slackapi/[email protected] | |
with: | |
# Slack channel id, channel name, or user id to post message. | |
# See also: https://api.slack.com/methods/chat.postMessage#channels | |
channel-id: 'C034RL2H2Q5' | |
# For posting a simple plain text message | |
slack-message: 'Found some broken links in action run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |