This commit is contained in:
Be
2024-03-03 12:25:10 +01:00
parent 2d6a8a295e
commit 2cb99c0824
2 changed files with 12 additions and 12 deletions

9
.github/actions/gitReset/action.yaml vendored Normal file
View File

@@ -0,0 +1,9 @@
runs:
using: "composite"
steps:
- name: Git reset, clean, pull
shell: bash
run: |
git reset --hard
git clean -fdx
git pull

View File

@@ -26,10 +26,7 @@ jobs:
fetch-depth: 0 # this is required to fetch all history for all branches and tags fetch-depth: 0 # this is required to fetch all history for all branches and tags
token: ${{ env.GH_PAT }} token: ${{ env.GH_PAT }}
ref: ${{ github.branch }} ref: ${{ github.branch }}
- run: | - uses: ./.github/actions/gitReset
git reset --hard
git clean -fdx
git pull
- uses: ./.github/actions/pyInstall - uses: ./.github/actions/pyInstall
- run: ./get_info_from_ripe.py --asn --limit 10 - run: ./get_info_from_ripe.py --asn --limit 10
- uses: ./.github/actions/gitPush - uses: ./.github/actions/gitPush
@@ -53,10 +50,7 @@ jobs:
fetch-depth: 0 # this is required to fetch all history for all branches and tags fetch-depth: 0 # this is required to fetch all history for all branches and tags
token: ${{ env.GH_PAT }} token: ${{ env.GH_PAT }}
ref: ${{ github.branch }} ref: ${{ github.branch }}
- run: | - uses: ./.github/actions/gitReset
git reset --hard
git clean -fdx
git pull
- uses: ./.github/actions/pyInstall - uses: ./.github/actions/pyInstall
- run: ./get_info_from_ripe.py --ipv4 --limit 10 - run: ./get_info_from_ripe.py --ipv4 --limit 10
- uses: ./.github/actions/gitPush - uses: ./.github/actions/gitPush
@@ -80,10 +74,7 @@ jobs:
fetch-depth: 0 # this is required to fetch all history for all branches and tags fetch-depth: 0 # this is required to fetch all history for all branches and tags
token: ${{ env.GH_PAT }} token: ${{ env.GH_PAT }}
ref: ${{ github.branch }} ref: ${{ github.branch }}
- run: | - uses: ./.github/actions/gitReset
git reset --hard
git clean -fdx
git pull
- uses: ./.github/actions/pyInstall - uses: ./.github/actions/pyInstall
- run: ./get_info_from_ripe.py --ipv6 --limit 10 - run: ./get_info_from_ripe.py --ipv6 --limit 10
- uses: ./.github/actions/gitPush - uses: ./.github/actions/gitPush