Skip to content

Commit

Permalink
take out the third party action for the commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Jul 18, 2024
1 parent 6c15724 commit 22dc5f6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/phpcbf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ jobs:
run: |
composer install
composer phpcbf || true # Allow the workflow to continue even if PHPCBF fails
- uses: stefanzweifel/git-auto-commit-action@v5
- name: Commit changes to PR
id: git-auto-commit
with:
commit_message: "PHPCBF: Fix coding standards"
commit_options: '--no-verify'
commit_user_name: "Pantheon Robot"
commit_user_email: "[email protected]"
run: |
git config --global user.email "[email protected]"
git config --global user.name "Pantheon Robot"
git add .
git diff-index --quiet HEAD || git commit -m "PHPCBF: Fix coding standards" --no-verify
echo ::set-output name=changes_detected::$(git diff-index --quiet HEAD || echo "true")
- name: Add PR Comment
if: steps.git-auto-commit.outputs.changes_detected == 'true'
env:
Expand Down

0 comments on commit 22dc5f6

Please sign in to comment.