Skip to content

Commit ccad164

Browse files
authored
Create auto cs-fix GithubAction (#21)
* Create auto cs-fix GithubAction * Kill CS * Apply php-cs-fixer changes * Kill CS * Apply php-cs-fixer changes * added GITHUB_TOKEN: * Update cs2pr * Apply php-cs-fixer changes * Update csfix.yml * kill CS * Apply php-cs-fixer changes * kill CS * Apply php-cs-fixer changes * Update csfix.yml * kill CS * Apply php-cs-fixer changes
1 parent 3c65f9b commit ccad164

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/csfix.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Format PHP
2+
3+
on: pull_request
4+
5+
jobs:
6+
php-cs-fixer:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
ref: ${{ github.head_ref }}
12+
13+
- name: Run php-cs-fixer
14+
uses: docker://oskarstark/php-cs-fixer-ga
15+
16+
- uses: stefanzweifel/git-auto-commit-action@v3.0.0
17+
with:
18+
commit_message: Apply php-cs-fixer changes
19+
branch: ${{ github.head_ref }}
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.STAABM_TOKEN }}

0 commit comments

Comments
 (0)