From d3ef63acfd50168794a56f14a5f3ab9a3d7883b9 Mon Sep 17 00:00:00 2001 From: giles Date: Mon, 23 Oct 2023 09:39:37 +0100 Subject: [PATCH] print-diff --- .gitea/workflows/build->develop.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build->develop.yml b/.gitea/workflows/build->develop.yml index d303598..aba6fd9 100644 --- a/.gitea/workflows/build->develop.yml +++ b/.gitea/workflows/build->develop.yml @@ -28,7 +28,7 @@ jobs: firstString=${{ github.ref_name }} secondString="develop" echo ::set-env name=DEVELOPMENT_BRANCH::${firstString/build\//"$secondString"\/} - - name: GIT diff + - name: commit env: CI_COMMIT_MESSAGE: converted to yml for review. CI_COMMIT_AUTHOR: Continuous Integration @@ -37,6 +37,18 @@ 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: diff + env: + CI_COMMIT_MESSAGE: converted to yml for review. + CI_COMMIT_AUTHOR: Continuous Integration + run: git diff 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 git push HEAD origin/${{ env.DEVELOPMENT_BRANCH }}; + else + echo 'no diff' fi \ No newline at end of file