...
convert-to-yml / develop-branch (push) Successful in 32s Details

This commit is contained in:
gilesb 2023-10-23 16:22:49 +01:00
parent f37f016a98
commit 33d70d88ff
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"\/} echo ::set-env name=BUILD_BRANCH::${firstString/develop\//"$secondString"\/}
- name: status - name: status
run: | run: |
git branch -r ls
echo $(git branch -r | grep -Fx " origin/${{ env.BUILD_BRANCH }}" | wc -c)
- name: push - name: push
run: | run: |
git add -A git add -A
@ -44,7 +43,7 @@ jobs:
git push origin HEAD:${{ env.BUILD_BRANCH }}; git push origin HEAD:${{ env.BUILD_BRANCH }};
else else
if [[ $(git diff origin/${{ env.BUILD_BRANCH }} | wc -c) -ne 0 ]]; then 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 }} git push origin HEAD:${{ env.BUILD_BRANCH }}
else else
echo 'no changes so no push' echo 'no changes so no push'