mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-25 15:31:12 +03:00
branches
This commit is contained in:
4
.github/actions/gitPush/action.yaml
vendored
4
.github/actions/gitPush/action.yaml
vendored
@@ -8,13 +8,13 @@ runs:
|
||||
daily_branch=`date "+%Y%m%d"`
|
||||
git config --global user.name "${{ env.REPO_OWNER }}"
|
||||
git config --global user.email "${{ env.REPO_OWNER }}@github.com"
|
||||
git add ${{ env.PUSH_FILES }}
|
||||
git diff --staged --quiet || CHANGED=true
|
||||
if [ -n "${{ env.CUSTOM_BRANCH }}" ]; then
|
||||
git checkout "${daily_branch}" 2>/dev/null || git checkout -b "${daily_branch}"
|
||||
#git pull origin "${daily_branch}"
|
||||
git push --set origin "${daily_branch}"
|
||||
fi
|
||||
git add ${{ env.PUSH_FILES }}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user