Skip to content

release blocklist

release blocklist #36

name: Validate Blocklist
on:
push:
paths:
- "blocklist.txt"
pull_request:
paths:
- "blocklist.txt"
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install dnspython requests
- name: Run validator
run: |
python3 .github/scripts/validate-blocklist.py
- name: Commit candidate list if changed
run: |
if [[ -n "$(git status --porcelain)" ]]; then
git config --global user.name "github-actions"
git config --global user.email "actions@github.com"
git add candidates_for_removal.txt
git commit -m "Update removal candidates"
git push
fi