This commit is contained in:
Be
2024-03-03 19:28:17 +01:00
parent 90b30ee14d
commit 6a6c5c05cb
2 changed files with 18 additions and 1 deletions

View File

@@ -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