mirror of
https://github.com/Anon-Planet/thgtoa.git
synced 2025-12-19 06:18:18 +01:00
27 lines
856 B
YAML
27 lines
856 B
YAML
name: Broken Links Checker
|
|
on:
|
|
schedule:
|
|
- cron: '12 1 * * 5'
|
|
workflow_dispatch:
|
|
env:
|
|
WEBSITE_URL: "https://anonymousplanet.org/"
|
|
ISSUE_TEMPLATE: ".github/workflows/check-broken-links.md"
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Run Broken Links Checker
|
|
run: npx broken-link-checker $WEBSITE_URL --ordered --recursive --user-agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" --exclude linkedin --exclude "udemy" --exclude "ude.my" --exclude "eia.gov" --exclude "backpack.tf" --exclude hlsw --exclude dell --exclude supermicro --exclude mysql
|
|
|
|
- uses: actions/checkout@v3
|
|
if: failure()
|
|
|
|
- uses: JasonEtco/create-an-issue@v2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
filename: ${{ env.ISSUE_TEMPLATE }}
|
|
if: failure()
|