diff --git a/.github/workflows/code_check.yml b/.github/workflows/code_check.yml index 9ac7234..745a1ac 100644 --- a/.github/workflows/code_check.yml +++ b/.github/workflows/code_check.yml @@ -1,6 +1,11 @@ name: Code quality check -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] jobs: phpunit: @@ -44,5 +49,5 @@ jobs: git config --global user.name "github-actions[bot]" git add . git commit -m "Apply PHP-CS-Fixer changes" - git push + git push origin HEAD:${{ github.ref }} fi