From 68b8b43d42612336d093645d8cc0e9cc581e7ca2 Mon Sep 17 00:00:00 2001 From: Sandy Zhang Date: Tue, 21 Feb 2023 11:21:18 -0800 Subject: [PATCH] Allow empty commits for update_php_repo Fix exit code on git commit which was preventing force-push and tagging from running even though these should work without a new commit. An empty commit is probably clearer anyways to show that sync has happened. PiperOrigin-RevId: 511255365 --- .github/workflows/update_php_repo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_php_repo.yml b/.github/workflows/update_php_repo.yml index 548cb6eefd..cb3383ad01 100644 --- a/.github/workflows/update_php_repo.yml +++ b/.github/workflows/update_php_repo.yml @@ -43,7 +43,7 @@ jobs: - name: Push Changes run: | git add --all - git commit -m "${{ env.VERSION }} sync" + git commit --allow-empty -m "${{ env.VERSION }} sync" git push --force origin master git tag -a ${{ env.VERSION_TAG }} -m "Tag release ${{ env.VERSION_TAG }}" git push origin ${{ env.VERSION_TAG }}