We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cd38c6 commit 2c39682Copy full SHA for 2c39682
.github/workflows/coding-standards.yml
@@ -13,6 +13,11 @@ jobs:
13
name: "phpcs"
14
runs-on: "ubuntu-22.04"
15
16
+ permissions:
17
+ # Give the default GITHUB_TOKEN write permission to commit and push the
18
+ # added or changed files to the repository.
19
+ contents: write
20
+
21
steps:
22
- name: "Checkout"
23
uses: "actions/checkout@v4"
@@ -52,6 +57,14 @@ jobs:
52
57
- name: "Run PHP_CodeSniffer"
53
58
run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"
54
59
60
+ - name: "Format the code"
61
+ run: ./vendor/bin/phpcbf
62
63
+ - name: "Commit the changes"
64
+ uses: stefanzweifel/git-auto-commit-action@v5
65
+ with:
66
+ commit_message: "apply phpcbf formatting"
67
55
68
analysis:
56
69
70
continue-on-error: true
0 commit comments