From 3b8cc6b4f0275f882aaef952dd3bd530782cd8ba Mon Sep 17 00:00:00 2001 From: giles Date: Mon, 23 Oct 2023 11:03:31 +0100 Subject: [PATCH] ........ --- .gitea/workflows/develop -> build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/develop -> build.yml b/.gitea/workflows/develop -> build.yml index 4363d8a..bca9c7b 100644 --- a/.gitea/workflows/develop -> build.yml +++ b/.gitea/workflows/develop -> build.yml @@ -46,8 +46,11 @@ jobs: git commit -a -m "${{ github.ref_name }} -> ${{ env.BUILD_BRANCH }} " git checkout -b ${{ env.BUILD_BRANCH }} git merge --squash ${{ github.ref_name }} - git push -f origin HEAD:${{ env.BUILD_BRANCH }} - + if [[ $(git diff origin/${{ env.BUILD_BRANCH }} | wc -c) -ne 0 ]]; then + git push -f origin HEAD:${{ env.BUILD_BRANCH }} + else + echo 'no changes so no push' + fi; - name: make pull request comment run: | curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea