release blocklist #38
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: 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 |