Skip to content

Make Blocklist

Make Blocklist #160

Workflow file for this run

name: Make Blocklist
on:
workflow_dispatch:
schedule:
- cron: '0 4 * * 1'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm run blocklist
- name: Commit new blocklist
run: |
git lfs migrate import --include="*.txt"
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit --allow-empty -m "Updated blocklist" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
env:
CI: true