File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 3030 # Additional processing steps (Converting to .rsc format)
3131 sed -nEi 's/(([0-9]+\.){3}[0-9]+) */add list=Whatsapp address=\1/p' Whatsapp-CIDR.rsc
3232 sed -i '1 i\\/ip firewall address-list' Whatsapp-CIDR.rsc
33+
34+ - name : Fetch Country CIDR List
35+ run : |
36+ curl -s "https://raw.githubusercontent.com/herrbischoff/country-ip-blocks/master/ipv4/ir.cidr" > IR-CIDR.rsc
37+ # Additional processing steps (Converting to .rsc format)
38+ sed -nEi 's/(([0-9]+\.){3}[0-9]+) */add list=IR address=\1/p' IR-CIDR.rsc
39+ sed -i '1 i\\/ip firewall address-list' IR-CIDR.rsc
40+
3341 # Add more steps to process the data and commit changes
3442
3543 - name : Copy CIDR.rsc files
3846 name : CIDR
3947 path : |
4048 *-CIDR.rsc
49+
50+ - name : Commit and Push
51+ run : |
52+ git add .
53+ git commit -m "Update CIDR list"
54+ git push
You can’t perform that action at this time.
0 commit comments