...
convert-to-yml / develop-branch (push) Successful in 32s
Details
convert-to-yml / develop-branch (push) Successful in 32s
Details
This commit is contained in:
parent
f37f016a98
commit
33d70d88ff
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue