Update AdGuard List #65
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: Update AdGuard List | |
| on: | |
| schedule: | |
| - cron: '0 4 * * *' # Tous les jours à 4h du matin UTC | |
| workflow_dispatch: # Permet de lancer manuellement | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-list: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Run update script | |
| run: python update_list.py | |
| - name: Commit and push changes | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "Mise à jour automatique de la blocklist" | |
| file_pattern: blocklist.txt |