uuuuuuuuuuuuuuuu
convert-to-yml / develop-branch (push) Successful in 29s Details

This commit is contained in:
giles 2023-10-23 10:16:00 +01:00
parent 643601a7b7
commit a040a3589d
1 changed files with 8 additions and 8 deletions

View File

@ -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 diff HEAD origin/${{ env.DEVELOPMENT_BRANCH }} | wc -c) -ne 0 ]]; then
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
echo 'no changes so no push'
fi
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