Skip to content

Workflow file for this run

name: Code Formatting
name: Format (prettier)

Check failure on line 2 in .github/workflows/format-code.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/format-code.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
on:
push:
branches:
- 'master'
pull_request:
paths:
- '**.css'
- '**.js'
- '**.vue'
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Install
run: yarn install
env:
CI: true
- name: Run prettier
run: yarn run prettier --write 'src/**/*.{css,js,vue}'
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply prettier changes