From fc8fef6e56191b0f85d17ced5a0604516ceaa6cb Mon Sep 17 00:00:00 2001 From: Vitaly Mikhailov Date: Mon, 23 Aug 2021 11:09:32 +0300 Subject: [PATCH] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 84414d9..87a61ca 100644 --- a/action.yml +++ b/action.yml @@ -34,7 +34,7 @@ runs: if ('${{ steps.format.outputs.has-changes == 'true' }}' -eq '') { Return }; git config --local user.name "github-actions[bot]"; git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"; - git commit -a -m 'Automated dotnet-format update'; + git diff-index --quiet HEAD || git commit -a -m 'Automated dotnet-format update'; shell: pwsh - name: Create Pull Request