Skip to content

Commit

Permalink
github action update
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulalam31 committed Nov 17, 2024
1 parent 3b83472 commit e769506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update_spamiplist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:

- name: Fetch IP List
run: |
curl -o abuseip.json https://raw.githubusercontent.com/borestad/blocklist-abuseipdb/main/abuseipdb-s100-14d.ipv4
curl -o abuseip.txt https://raw.githubusercontent.com/borestad/blocklist-abuseipdb/main/abuseipdb-s100-14d.ipv4
- name: Format IP List
run: |
jq -R -s -c 'split("\n") | map(select(test("^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$")))' abuseip.json > tmp.json && mv tmp.json abuseip.json
grep -oP '^\d{1,3}(\.\d{1,3}){3}' abuseip.txt | jq -R -s -c 'split("\n") | map(select(. != ""))' > abuseip.json
- name: Commit changes
Expand Down

0 comments on commit e769506

Please sign in to comment.