mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-03-31 22:58:51 +03:00
big update
This commit is contained in:
2
.github/actions/gitPush/action.yaml
vendored
2
.github/actions/gitPush/action.yaml
vendored
@@ -10,7 +10,7 @@ runs:
|
||||
git config --global user.email "${{ env.REPO_OWNER }}@github.com"
|
||||
if [ -n "${{ env.CUSTOM_BRANCH }}" ]; then
|
||||
git checkout "${daily_branch}" 2>/dev/null || git checkout -b "${daily_branch}"
|
||||
git push --set origin "${daily_branch}"
|
||||
git push --set-upstream origin "${daily_branch}"
|
||||
fi
|
||||
git add ${{ env.PUSH_FILES }}
|
||||
git diff --staged --quiet || CHANGED=true
|
||||
|
||||
6
.github/actions/gitReset/action.yaml
vendored
6
.github/actions/gitReset/action.yaml
vendored
@@ -8,9 +8,9 @@ runs:
|
||||
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}"
|
||||
git checkout "${daily_branch}" 2>/dev/null || git checkout -b "${daily_branch}"
|
||||
git pull origin "${daily_branch}" || true
|
||||
git push --set-upstream origin "${daily_branch}"
|
||||
fi
|
||||
git reset --hard
|
||||
git clean -fdx
|
||||
|
||||
6
.github/workflows/resolve_networks.yml
vendored
6
.github/workflows/resolve_networks.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0 # this is required to fetch all history for all branches and tags
|
||||
token: ${{ env.GH_PAT }}
|
||||
ref: ${{ github.branch }}
|
||||
ref: ${{ github.ref_name }}
|
||||
- uses: ./.github/actions/gitReset
|
||||
env:
|
||||
CUSTOM_BRANCH: true
|
||||
@@ -53,7 +53,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0 # this is required to fetch all history for all branches and tags
|
||||
token: ${{ env.GH_PAT }}
|
||||
ref: ${{ github.branch }}
|
||||
ref: ${{ github.ref_name }}
|
||||
- uses: ./.github/actions/gitReset
|
||||
env:
|
||||
CUSTOM_BRANCH: true
|
||||
@@ -80,7 +80,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0 # this is required to fetch all history for all branches and tags
|
||||
token: ${{ env.GH_PAT }}
|
||||
ref: ${{ github.branch }}
|
||||
ref: ${{ github.ref_name }}
|
||||
- uses: ./.github/actions/gitReset
|
||||
env:
|
||||
CUSTOM_BRANCH: true
|
||||
|
||||
Reference in New Issue
Block a user