From 093a2dec59d5e239d66836982d2686765168fc40 Mon Sep 17 00:00:00 2001 From: giles Date: Mon, 23 Oct 2023 09:44:28 +0100 Subject: [PATCH] print-diff --- .gitea/workflows/build->develop.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build->develop.yml b/.gitea/workflows/build->develop.yml index aba6fd9..d1b8c97 100644 --- a/.gitea/workflows/build->develop.yml +++ b/.gitea/workflows/build->develop.yml @@ -37,17 +37,23 @@ jobs: git config --global user.email "username@users.noreply.github.com" git add -A git commit -a -m "${{ github.ref_name }} -> ${{ env.DEVELOPMENT_BRANCH }}" + - name: status + env: + CI_COMMIT_MESSAGE: converted to yml for review. + CI_COMMIT_AUTHOR: Continuous Integration + run: | + git status - name: diff env: CI_COMMIT_MESSAGE: converted to yml for review. CI_COMMIT_AUTHOR: Continuous Integration - run: git diff HEAD origin/${{ env.DEVELOPMENT_BRANCH }} + run: git diff --porcelain HEAD origin/${{ env.DEVELOPMENT_BRANCH }} - 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 }}); then + if $(git diff --porcelain HEAD origin/${{ env.DEVELOPMENT_BRANCH }}); then git push HEAD origin/${{ env.DEVELOPMENT_BRANCH }}; else echo 'no diff'