This commit is contained in:
gilesb 2023-10-23 16:22:49 +01:00 committed by giles
parent 83a57e5703
commit 3459cac714
1 changed files with 2 additions and 3 deletions

View File

@ -34,8 +34,7 @@ jobs:
echo ::set-env name=BUILD_BRANCH::${firstString/develop\//"$secondString"\/}
- name: status
run: |
git branch -r
echo $(git branch -r | grep -Fx " origin/${{ env.BUILD_BRANCH }}" | wc -c)
ls
- name: push
run: |
git add -A
@ -44,7 +43,7 @@ jobs:
git push origin HEAD:${{ env.BUILD_BRANCH }};
else
if [[ $(git diff origin/${{ env.BUILD_BRANCH }} | wc -c) -ne 0 ]]; then
git rebase origin/${{ env.BUILD_BRANCH }} --strategy-option theirs
git rebase origin/${{ env.BUILD_BRANCH }} --strategy-option ours
git push origin HEAD:${{ env.BUILD_BRANCH }}
else
echo 'no changes so no push'