dead-domain-linter #434
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: dead-domain-linter | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * 0" # Every Sunday at 00:00 UTC | |
| permissions: | |
| contents: write | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "lts/*" | |
| - name: Install dead-domains-linter | |
| run: npm install -g @adguard/dead-domains-linter | |
| - name: Run linter | |
| run: | | |
| dead-domains-linter \ | |
| -i subscriptions/abpindo.txt \ | |
| --export src/dead_domains.txt | |
| - name: Commit results | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add src/dead_domains.txt | |
| git diff --staged --quiet && echo "No dead domains found." && exit 0 | |
| git commit -m "chore: update dead_domains.txt [skip ci]" | |
| git push | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |