diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index c71fb46be16..43305fc1aed 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -13,8 +13,13 @@ jobs: uses: actions/checkout@v2 # disable this check while we migrate to monorepo - name: Run prettier - run: |- - npx prettier -c 'apps/**/*.{js,jsx,ts,tsx,css,md,json}' + uses: EPMatt/reviewdog-action-prettier@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + level: warning + command: npx prettier -c 'apps/**/*.{js,jsx,ts,tsx,css,md,json}' + # run: |- # function run_check() { # if $(grep -q '"prettier"' "$1") ; then @@ -35,5 +40,9 @@ jobs: - name: Check out repo uses: actions/checkout@v2 - name: Run prettier - run: |- - npx prettier -c 'i18n/**/*.{js,jsx,ts,tsx,css,md,json}' + uses: EPMatt/reviewdog-action-prettier@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + level: warning + command: npx prettier -c 'i18n/**/*.{js,jsx,ts,tsx,css,md,json}'