mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-25 07:26:59 +03:00
Get RUS data / fix
This commit is contained in:
2
.github/workflows/update_blacklists.yml
vendored
2
.github/workflows/update_blacklists.yml
vendored
@@ -8,7 +8,7 @@ env:
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 2 * * *'
|
||||
- cron: '0 6 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
12
.github/workflows/update_ru_all_lists.yml
vendored
12
.github/workflows/update_ru_all_lists.yml
vendored
@@ -8,7 +8,7 @@ env:
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 1 * * 0'
|
||||
- cron: '0 0,2,4 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -29,7 +29,15 @@ jobs:
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- run: ./requirements.sh
|
||||
- run: ./get_info_from_ripe.py
|
||||
- run: |
|
||||
hour=$(date +%H)
|
||||
if (( 0 <= 10#$hour && 10#$hour < 1 )); then
|
||||
./get_info_from_ripe.py --asn
|
||||
elif (( 2 <= 10#$hour && 10#$hour < 3 )); then
|
||||
./get_info_from_ripe.py --ipv4
|
||||
else
|
||||
./get_info_from_ripe.py --ipv6
|
||||
fi
|
||||
- uses: ./.github/actions/gitPush
|
||||
env:
|
||||
PUSH_FILES: auto/all-ru-*txt
|
||||
|
||||
Reference in New Issue
Block a user