Update list.txt #28
This file contains 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
# 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]" |