uuuuuuuuuuuuuuuu
convert-to-yml / develop-branch (push) Successful in 29s
Details
convert-to-yml / develop-branch (push) Successful in 29s
Details
This commit is contained in:
parent
643601a7b7
commit
a040a3589d
|
@ -44,17 +44,17 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git status
|
git status
|
||||||
- name: diff
|
- name: diff
|
||||||
env:
|
|
||||||
CI_COMMIT_MESSAGE: converted to yml for review.
|
|
||||||
CI_COMMIT_AUTHOR: Continuous Integration
|
|
||||||
run: git branch -r
|
|
||||||
- name: push
|
|
||||||
env:
|
env:
|
||||||
CI_COMMIT_MESSAGE: converted to yml for review.
|
CI_COMMIT_MESSAGE: converted to yml for review.
|
||||||
CI_COMMIT_AUTHOR: Continuous Integration
|
CI_COMMIT_AUTHOR: Continuous Integration
|
||||||
run: |
|
run: |
|
||||||
|
if [[ $(git branch -r | grep origin/${{ env.DEVELOPMENT_BRANCH }} | wc -c) -eq 0 ]]; then
|
||||||
|
git push origin HEAD:origin/${{ env.DEVELOPMENT_BRANCH }};
|
||||||
|
echo 'pushed new branch';
|
||||||
|
else
|
||||||
if [[ $(git diff HEAD origin/${{ env.DEVELOPMENT_BRANCH }} | wc -c) -ne 0 ]]; then
|
if [[ $(git diff HEAD origin/${{ env.DEVELOPMENT_BRANCH }} | wc -c) -ne 0 ]]; then
|
||||||
git push origin HEAD:origin/${{ env.DEVELOPMENT_BRANCH }};
|
git push origin HEAD:origin/${{ env.DEVELOPMENT_BRANCH }};
|
||||||
else
|
else
|
||||||
echo 'no changes so no push'
|
echo 'no changes so no push'
|
||||||
|
fi;
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue