Skip to content

Commit

Permalink
Attempt reviewdog prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ligi authored Jul 20, 2024
1 parent 5cd87c0 commit a098d6c
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/prettier_write.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
name: Apply prettier

on:
pull_request:
branches: [master]

name: prettier review
on: [pull_request]
jobs:
prettier:
name: runner / prettier
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v2
- uses: EPMatt/reviewdog-action-prettier@v1
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Prettify json
uses: creyD/[email protected]
with:
prettier_options: --write _data/*/*.json
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
level: error
prettier_flags: _data/*/*.json

0 comments on commit a098d6c

Please sign in to comment.