mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-25 23:35:41 +03:00
Get data actions
This commit is contained in:
46
.github/workflows/bl.yml
vendored
46
.github/workflows/bl.yml
vendored
@@ -1,46 +0,0 @@
|
||||
name: BlackLists updater
|
||||
|
||||
env:
|
||||
GH_PAT: ${{ secrets.GH_PAT }}
|
||||
REPO_NAME: AS_Network_List
|
||||
REPO_OWNER: C24Be
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: 'BL/Update'
|
||||
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
defaults:
|
||||
run:
|
||||
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: curl -s ifconfig.io
|
||||
- run: ./blacklists_updater.sh
|
||||
- name: Push changes back to the repo
|
||||
run: |
|
||||
timestamp=`date "+%Y.%m.%d %H:%M:%S"`
|
||||
git config --global user.name "${{ env.REPO_OWNER }}"
|
||||
git config --global user.email "${{ env.REPO_OWNER }}@github.com"
|
||||
git add auto/blacklist*txt
|
||||
git diff --staged --quiet || CHANGED=true
|
||||
if [ "$CHANGED" = true ]; then
|
||||
git commit -m "Update $timestamp"
|
||||
git push https://${{ env.GH_PAT }}@github.com/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}.git
|
||||
else
|
||||
echo "No changes to commit"
|
||||
fi
|
||||
35
.github/workflows/update_blacklists.yml
vendored
Normal file
35
.github/workflows/update_blacklists.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: BlackLists updater
|
||||
|
||||
env:
|
||||
GH_PAT: ${{ secrets.GH_PAT }}
|
||||
REPO_NAME: AS_Network_List
|
||||
REPO_OWNER: C24Be
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: 'BL/Update'
|
||||
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
defaults:
|
||||
run:
|
||||
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: ./blacklists_updater.sh
|
||||
- uses: ./.github/actions/dockerBuildPHP
|
||||
env:
|
||||
PUSH_FILES: auto/blacklist*txt
|
||||
35
.github/workflows/update_ru_all_lists.yml
vendored
Normal file
35
.github/workflows/update_ru_all_lists.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: All RU Networks and ASN updater
|
||||
|
||||
env:
|
||||
GH_PAT: ${{ secrets.GH_PAT }}
|
||||
REPO_NAME: AS_Network_List
|
||||
REPO_OWNER: C24Be
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0 * * 0'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: 'BL/Update'
|
||||
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
defaults:
|
||||
run:
|
||||
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: ./get_info_from_ripe.py
|
||||
- uses: ./.github/actions/dockerBuildPHP
|
||||
env:
|
||||
PUSH_FILES: auto/all-ru-*txt
|
||||
Reference in New Issue
Block a user