...
This commit is contained in:
parent
83a57e5703
commit
3459cac714
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue