.....
build-develop-branch / build-branch (push) Has been cancelled Details

This commit is contained in:
gilesb 2023-10-23 15:02:28 +01:00
parent eda88259de
commit 2c7937596c
1 changed files with 24 additions and 22 deletions

View File

@ -40,8 +40,9 @@ jobs:
run: | run: |
git add -A git add -A
git commit -a -m "${{ github.ref_name }} -> ${{ env.BUILD_BRANCH }} " git commit -a -m "${{ github.ref_name }} -> ${{ env.BUILD_BRANCH }} "
git checkout -b ${{ env.BUILD_BRANCH }} if [[ $(git branch -r | grep -Fx " origin/${{ env.BUILD_BRANCH }}" | wc -c) -eq 0 ]]; then
git merge --squash ${{ github.ref_name }} git push origin;
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 clone ${{ github.serverUrl }}/${{ github.repository }} ../cloned git clone ${{ github.serverUrl }}/${{ github.repository }} ../cloned
git -C ../cloned fetch origin #--depth=1 git -C ../cloned fetch origin #--depth=1
@ -64,6 +65,7 @@ jobs:
else else
echo 'no changes so no push' echo 'no changes so no push'
fi; fi;
fi;
- name: make PR - name: make PR
run: | run: |
curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea