Skip to content

Commit 48dab9f

Browse files
authored
Create CIDR
1 parent a695a6c commit 48dab9f

File tree

1 file changed

+29
-0
lines changed
  • .github/workflows

1 file changed

+29
-0
lines changed

.github/workflows/CIDR

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Update CIDR Lists
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
update:
9+
runs-on: alpine-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Fetch Telegram CIDR List
16+
run: |
17+
curl -s "https://core.telegram.org/resources/cidr.txt" | sed "s/[[:space:]]//g" > Telegram-CIDR.txt
18+
# Additional processing steps (e.g., converting to .rsc format) go here
19+
20+
# Add more steps to process the data and commit changes
21+
# ...
22+
23+
- name: Commit and Push
24+
run: |
25+
git config --global user.email $GIT_EMAIL
26+
git config --global user.name $GIT_NAME
27+
git add .
28+
git commit -m "Update CIDR lists"
29+
git push

0 commit comments

Comments
 (0)