From b54800e7d61751b0380fabdb3845eed02e842c47 Mon Sep 17 00:00:00 2001 From: Guillaume Falourd Date: Tue, 21 Dec 2021 09:49:45 -0300 Subject: [PATCH] Update action.yml --- action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 6f39515..364672e 100644 --- a/action.yml +++ b/action.yml @@ -92,7 +92,12 @@ runs: git merge push-and-commit-action-${{ github.run_id }}-${{ github.job }} git branch -d push-and-commit-action-${{ github.run_id }}-${{ github.job }} - git push "${{ inputs.remote_repository }}" "$CURRENT_BRANCH:$TARGET_BRANCH" --follow-tags $FORCE $TAGS + if [[ `git status --porcelain` ]]; then + git push "${{ inputs.remote_repository }}" "$CURRENT_BRANCH:$TARGET_BRANCH" --follow-tags $FORCE $TAGS + else + echo "No changes" + fi + shell: bash branding: