Skip to content

Update list.txt

Update list.txt #29

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
push:
paths:
- 'list.txt'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
commit-to-files:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Replace lines in list.txt with ||line^ and write to adguard.txt
run: |
sed 's/\(.*\)/||\1^/' list.txt > adguard.txt
- name: Replace lines in list.txt with *://*.line/* and write to ublacklist.txt
run: |
sed 's/\(.*\)/\*:\/\/\*\.&\/*/' list.txt > ublacklist.txt
- name: Commit changes to adguard.txt
uses: EndBug/add-and-commit@v4
with:
message: "Updated adguard.txt"
add: adguard.txt
author_name: "GitHub Actions"
author_email: "[email protected]"
- name: Commit changes to ublacklist.txt
uses: EndBug/add-and-commit@v4
with:
message: "Updated ublacklist.txt"
add: ublacklist.txt
author_name: "GitHub Actions"
author_email: "[email protected]"