-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
take out the third party action for the commit
- Loading branch information
1 parent
6c15724
commit 22dc5f6
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|