Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arfoux authored Aug 25, 2024
1 parent bc53bda commit 26f473a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@ jobs:
run: |
echo "Downloading big adblock list..."
curl -s 'https://big.oisd.nl/domainswild' -o oisd_big_domainswild.txt
awk '/^\*\./ && !x {print "# https://github.com/arfoux/clash-rule-providers \n\npayload:"; x=1} 1' oisd_big_domainswild.txt > big.txt
sed -i 's/^[*]\./ - '+./g' big.txt
rm -fr oisd_big_domainswild.txt
echo "Downloading small adblock list..."
curl -s 'https://small.oisd.nl/domainswild' -o oisd_small_domainswild.txt
- name: Rename files
run: |
mv oisd_big_domainswild.txt big.txt
mv oisd_small_domainswild.txt small.txt
- name: Clean up original files
run: |
rm -fr oisd_big.yamle oisd_big_domainswild.txt oisd_small_domainswild.txt
awk '/^\*\./ && !x {print "# https://github.com/arfoux/clash-rule-providers \n\npayload:"; x=1} 1' oisd_small_domainswild.txt > small.txt
sed -i 's/^[*]\./ - '+./g' small.txt
rm -fr oisd_small_domainswild.txt
- uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down

0 comments on commit 26f473a

Please sign in to comment.