All RU Networks and ASN updater #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 1 * *' | |
jobs: | |
get_asn: | |
name: 'Get/ASN' | |
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 }} | |
ref: ${{ github.branch }} | |
- run: | | |
git reset --hard | |
git clean -fdx | |
git pull | |
- uses: ./.github/actions/pyInstall | |
- run: ./get_info_from_ripe.py --asn --limit 10 | |
- uses: ./.github/actions/gitPush | |
env: | |
PUSH_FILES: auto/*txt | |
get_ipv4: | |
name: 'Get/IPv4' | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
shell: bash | |
needs: get_asn | |
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 }} | |
ref: ${{ github.branch }} | |
- run: | | |
git reset --hard | |
git clean -fdx | |
git pull | |
- uses: ./.github/actions/pyInstall | |
- run: ./get_info_from_ripe.py --ipv4 --limit 10 | |
- uses: ./.github/actions/gitPush | |
env: | |
PUSH_FILES: auto/*txt | |
get_ipv6: | |
name: 'Get/IPv6' | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
shell: bash | |
needs: get_ipv4 | |
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 }} | |
ref: ${{ github.branch }} | |
- run: | | |
git reset --hard | |
git clean -fdx | |
git pull | |
- uses: ./.github/actions/pyInstall | |
- run: ./get_info_from_ripe.py --ipv6 --limit 10 | |
- uses: ./.github/actions/gitPush | |
env: | |
PUSH_FILES: auto/*txt |