From 036207bfb021a0a2eed85d6c41b3102aaa99b437 Mon Sep 17 00:00:00 2001 From: Otto winter Date: Mon, 21 Jun 2021 21:22:32 +0200 Subject: [PATCH] Fix protoc-update bash error --- .github/workflows/protoc-update.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/protoc-update.yml b/.github/workflows/protoc-update.yml index b3300ba..d6440f8 100644 --- a/.github/workflows/protoc-update.yml +++ b/.github/workflows/protoc-update.yml @@ -27,9 +27,7 @@ jobs: # github actions email from here: https://github.community/t/github-actions-bot-email-address/17204 - name: Commit changes run: | - if git diff-index --quiet HEAD --; then - echo "No changes detected, protobuf files are up to date!" - else + if ! git diff-index --quiet HEAD; then git config --global user.name "github-actions[bot]" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git commit -am "Update protobuf files"