Skip to content

Update filterlist

Update filterlist #8

name: Update filterlist
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * FRI' # run every Friday at 3:00
jobs:
update_filterlist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Update EasyList
run: |
npm run update-easylist
- name: Read EasyList revision
id: read-revision
run: echo "revision=`cat rules/filterlists/easylist_revision.txt`" >> "$GITHUB_OUTPUT"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
title: Update EasyList Cookie to ${{ steps.read-revision.outputs.revision }}
commit-message: Update EasyList Cookie to ${{ steps.read-revision.outputs.revision }}
labels: |
minor
dependencies
release
reviewers: muodov,sammacbeth
body: |
This PR updates the filterlist based on EasyList Cookie commit [${{ steps.read-revision.outputs.revision }}](https://github.com/easylist/easylist/tree/${{ steps.read-revision.outputs.revision }}/easylist_cookie).