Skip to content

Instantly share code, notes, and snippets.

@tomschlick
Last active March 8, 2020 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomschlick/157407ade6194646aba8bbe7f8438b8a to your computer and use it in GitHub Desktop.
Save tomschlick/157407ade6194646aba8bbe7f8438b8a to your computer and use it in GitHub Desktop.
name: 'php-cs-fixer'
on:
- push
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.YOUR_TOKEN }}
- name: Cache .php_cs.cache
uses: actions/cache@v1
with:
path: ./.php_cs.cache
key: php-cs-cache
- name: Run php-cs-fixer
uses: docker://oskarstark/php-cs-fixer-ga
- uses: stefanzweifel/git-auto-commit-action@v4.0.0
with:
commit_message: Apply php-cs-fixer changes
branch: ${{ github.head_ref }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment