Skip to content

Commit 79ffaf7

Browse files
authored
Update main.yml
1 parent b8f109e commit 79ffaf7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ jobs:
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
@@ -38,3 +46,9 @@ jobs:
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

0 commit comments

Comments
 (0)