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: |
|
||||
git status
|
||||
- name: diff
|
||||
env:
|
||||
CI_COMMIT_MESSAGE: converted to yml for review.
|
||||
CI_COMMIT_AUTHOR: Continuous Integration
|
||||
run: git branch -r
|
||||
- name: push
|
||||
env:
|
||||
CI_COMMIT_MESSAGE: converted to yml for review.
|
||||
CI_COMMIT_AUTHOR: Continuous Integration
|
||||
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
|
||||
git push origin HEAD:origin/${{ env.DEVELOPMENT_BRANCH }};
|
||||
else
|
||||
echo 'no changes so no push'
|
||||
fi;
|
||||
fi
|
Loading…
Reference in New Issue