mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-25 15:31:12 +03:00
RU/Updater
This commit is contained in:
2
.github/workflows/update_blacklists.yml
vendored
2
.github/workflows/update_blacklists.yml
vendored
@@ -11,7 +11,7 @@ on:
|
||||
- cron: '0 6 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
update:
|
||||
name: 'Update'
|
||||
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
58
.github/workflows/update_ru_all_lists.yml
vendored
58
.github/workflows/update_ru_all_lists.yml
vendored
@@ -8,11 +8,14 @@ env:
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0,2,4 1 * *'
|
||||
- cron: '0 0 1 * *'
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: 'Update'
|
||||
get_as:
|
||||
name: 'Get/ASN'
|
||||
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
@@ -21,23 +24,32 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # this is required to fetch all history for all branches and tags
|
||||
token: ${{ env.GH_PAT }}
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- run: ./requirements.sh
|
||||
- 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
|
||||
- run: curl -s ifconfig.io
|
||||
|
||||
get_ipv4:
|
||||
name: 'Get/IPv4'
|
||||
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
needs: get_as
|
||||
|
||||
steps:
|
||||
- run: curl -s ifconfig.io
|
||||
|
||||
get_ipv6:
|
||||
name: 'Get/IPv6'
|
||||
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
needs: get_ipv4
|
||||
|
||||
steps:
|
||||
- run: curl -s ifconfig.io
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user