mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-25 23:35:41 +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
|
||||
shell: bash
|
||||
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 clean -fdx
|
||||
git pull
|
||||
|
||||
Reference in New Issue
Block a user