Skip to content

Commit

Permalink
Create fix-coding-standards.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JackieDo committed Mar 14, 2022
1 parent 9396373 commit 2ad6445
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/fix-coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Fix coding standards
on: [push]
jobs:
php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Fix code
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --config=.php-cs-fixer.dist.php

- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix coding standards
branch: ${{ steps.extract_branch.outputs.branch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2ad6445

Please sign in to comment.