Update Website Blacklist #37
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 Website Blacklist' | |
| on: | |
| schedule: | |
| - cron: '0 1 */7 * *' | |
| workflow_dispatch: | |
| jobs: | |
| update-and-commit: | |
| environment: 'otternaut' | |
| runs-on: 'ubuntu-latest' | |
| permissions: | |
| contents: 'write' | |
| steps: | |
| - name: 'Checkout repository' | |
| uses: 'actions/checkout@v4' | |
| - name: 'Setup Deno' | |
| uses: 'denoland/setup-deno@v2' | |
| with: | |
| deno-version: 'v2.x' | |
| - run: './scripts/compile-blacklist.ts' | |
| - uses: 'crazy-max/ghaction-import-gpg@v6' | |
| with: | |
| gpg_private_key: '${{ secrets.GPG_PRIVATE_KEY }}' | |
| passphrase: '${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}' | |
| - name: 'Commit' | |
| run: | | |
| git add config/ublacklist-compiled.txt | |
| git add config/ublockorigin-compiled.txt | |
| git \ | |
| -c user.name='Otternaut' \ | |
| -c user.email='99463792+otternaut-bot@users.noreply.github.com' \ | |
| commit \ | |
| --author='Otternaut <99463792+otternaut-bot@users.noreply.github.com>' \ | |
| -S0xFB6C155AFD89739C \ | |
| -m "$(date '+%Y.%m.%d')" | |
| git push |