mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-03-26 11:20:59 +03:00
branches
This commit is contained in:
8
.github/actions/gitReset/action.yaml
vendored
8
.github/actions/gitReset/action.yaml
vendored
@@ -4,6 +4,14 @@ runs:
|
|||||||
- name: Git reset, clean, pull
|
- name: Git reset, clean, pull
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
daily_branch=`date "+%Y%m%d"`
|
||||||
|
if [ -n "${{ env.CUSTOM_BRANCH }}" ]; then
|
||||||
|
git reset --hard
|
||||||
|
git clean -fdx
|
||||||
|
git checkout "${daily_branch}"
|
||||||
|
git pull origin "${daily_branch}"
|
||||||
|
git push --set origin "${daily_branch}"
|
||||||
|
fi
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git clean -fdx
|
git clean -fdx
|
||||||
git pull
|
git pull
|
||||||
|
|||||||
11
.github/workflows/resolve_networks.yml
vendored
11
.github/workflows/resolve_networks.yml
vendored
@@ -4,7 +4,7 @@ env:
|
|||||||
GH_PAT: ${{ secrets.GH_PAT }}
|
GH_PAT: ${{ secrets.GH_PAT }}
|
||||||
REPO_NAME: AS_Network_List
|
REPO_NAME: AS_Network_List
|
||||||
REPO_OWNER: C24Be
|
REPO_OWNER: C24Be
|
||||||
WHOIS_RESOLVE_LIMIT: 3000
|
WHOIS_RESOLVE_LIMIT: 10
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -28,11 +28,14 @@ jobs:
|
|||||||
token: ${{ env.GH_PAT }}
|
token: ${{ env.GH_PAT }}
|
||||||
ref: ${{ github.branch }}
|
ref: ${{ github.branch }}
|
||||||
- uses: ./.github/actions/gitReset
|
- uses: ./.github/actions/gitReset
|
||||||
|
env:
|
||||||
|
CUSTOM_BRANCH: true
|
||||||
- uses: ./.github/actions/pyInstall
|
- uses: ./.github/actions/pyInstall
|
||||||
- run: ./get_description.py auto/all-ru-asn.txt --limit ${{ env.WHOIS_RESOLVE_LIMIT }}
|
- run: ./get_description.py auto/all-ru-asn.txt --limit ${{ env.WHOIS_RESOLVE_LIMIT }}
|
||||||
- uses: ./.github/actions/gitPush
|
- uses: ./.github/actions/gitPush
|
||||||
env:
|
env:
|
||||||
PUSH_FILES: auto/*txt
|
PUSH_FILES: auto/*txt
|
||||||
|
CUSTOM_BRANCH: true
|
||||||
|
|
||||||
resolve_ipv4:
|
resolve_ipv4:
|
||||||
name: 'Resolve/IPv4'
|
name: 'Resolve/IPv4'
|
||||||
@@ -52,11 +55,14 @@ jobs:
|
|||||||
token: ${{ env.GH_PAT }}
|
token: ${{ env.GH_PAT }}
|
||||||
ref: ${{ github.branch }}
|
ref: ${{ github.branch }}
|
||||||
- uses: ./.github/actions/gitReset
|
- uses: ./.github/actions/gitReset
|
||||||
|
env:
|
||||||
|
CUSTOM_BRANCH: true
|
||||||
- uses: ./.github/actions/pyInstall
|
- uses: ./.github/actions/pyInstall
|
||||||
- run: ./get_description.py auto/all-ru-ipv4.txt --limit ${{ env.WHOIS_RESOLVE_LIMIT }}
|
- run: ./get_description.py auto/all-ru-ipv4.txt --limit ${{ env.WHOIS_RESOLVE_LIMIT }}
|
||||||
- uses: ./.github/actions/gitPush
|
- uses: ./.github/actions/gitPush
|
||||||
env:
|
env:
|
||||||
PUSH_FILES: auto/*txt
|
PUSH_FILES: auto/*txt
|
||||||
|
CUSTOM_BRANCH: true
|
||||||
|
|
||||||
resolve_ipv6:
|
resolve_ipv6:
|
||||||
name: 'Resolve/IPv6'
|
name: 'Resolve/IPv6'
|
||||||
@@ -76,8 +82,11 @@ jobs:
|
|||||||
token: ${{ env.GH_PAT }}
|
token: ${{ env.GH_PAT }}
|
||||||
ref: ${{ github.branch }}
|
ref: ${{ github.branch }}
|
||||||
- uses: ./.github/actions/gitReset
|
- uses: ./.github/actions/gitReset
|
||||||
|
env:
|
||||||
|
CUSTOM_BRANCH: true
|
||||||
- uses: ./.github/actions/pyInstall
|
- uses: ./.github/actions/pyInstall
|
||||||
- run: ./get_description.py auto/all-ru-ipv6.txt --limit ${{ env.WHOIS_RESOLVE_LIMIT }}
|
- run: ./get_description.py auto/all-ru-ipv6.txt --limit ${{ env.WHOIS_RESOLVE_LIMIT }}
|
||||||
- uses: ./.github/actions/gitPush
|
- uses: ./.github/actions/gitPush
|
||||||
env:
|
env:
|
||||||
PUSH_FILES: auto/*txt
|
PUSH_FILES: auto/*txt
|
||||||
|
CUSTOM_BRANCH: true
|
||||||
|
|||||||
Reference in New Issue
Block a user