You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
878 B

3 years ago
  1. name: Check & fix styling
  2. on: [push]
  3. jobs:
  4. style:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: Checkout code
  8. uses: actions/checkout@v2
  9. - name: Fix style
  10. uses: docker://oskarstark/php-cs-fixer-ga
  11. with:
  12. args: --config=.php_cs --allow-risky=yes
  13. - name: Extract branch name
  14. shell: bash
  15. run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
  16. id: extract_branch
  17. - name: Commit changes
  18. uses: stefanzweifel/git-auto-commit-action@v2.3.0
  19. with:
  20. commit_message: Fix styling
  21. branch: ${{ steps.extract_branch.outputs.branch }}
  22. env:
  23. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}