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.
pull/12008/head
zhangskz 2 years ago committed by GitHub
parent 20c15bb5dd
commit 21a5e8dffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .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 }}

Loading…
Cancel
Save