Link Checker #78
This file contains hidden or 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: Link Checker | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # Runs at 00:00 UTC every Monday | |
| - cron: '0 0 * * 1' | |
| jobs: | |
| link_check: | |
| name: Check Links | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| url: | |
| - https://dev-orchestrator.abstract.money | |
| - https://dev-docs.abstract.money | |
| steps: | |
| - name: Check links at ${{ matrix.url }} | |
| id: linkcheck | |
| uses: filiph/[email protected] | |
| with: | |
| arguments: ${{ matrix.url }} | |
| - name: Notify on failure | |
| if: ${{ failure() }} | |
| uses: appleboy/discord-action@master | |
| with: | |
| webhook_id: ${{ secrets.LINTER_WEBHOOK_ID }} | |
| webhook_token: ${{ secrets.LINTER_WEBHOOK_TOKEN }} | |
| username: Abstract Link Checker | |
| avatar_url: https://d1nhio0ox7pgb.cloudfront.net/_img/g_collection_png/standard/256x256/link_broken.png | |
| message: | | |
| **:red_circle: Link Check Failed** | |
| **URL Checked:** ${{ matrix.url }} | |
| **Status:** Failure :x: | |
| **Action Details:** [View Run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) |