From d0434f490f8ff202d482df36d984a0089d1d26a0 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Tue, 26 Apr 2022 10:57:40 +0200 Subject: [PATCH] trying to disable prettier check --- .github/workflows/prettier.yml | 38 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index ef3310d6291..b01dba8dc82 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -3,27 +3,27 @@ name: Check Code with Prettier on: pull_request: branches: - - 'master' + - 'disabled-for-now' jobs: - # format: - # runs-on: ubuntu-latest - # steps: - # - name: Check out repo - # uses: actions/checkout@v2 - # - name: Run prettier - # run: |- - # function run_check() { - # if $(grep -q '"prettier"' "$1") ; then - # pushd "$(dirname $1)" - # echo "Running prettier on $(pwd)" - # npx prettier -c '**/*.{js,jsx,ts,tsx,css,md,json}' - # popd - # fi - # } - # find . -type f -name 'package.json' ! -path '*node_modules*' -print0 | while IFS= read -r -d '' file; do - # run_check "$file" - # done + format: + runs-on: ubuntu-latest + steps: + - name: Check out repo + uses: actions/checkout@v2 + - name: Run prettier + run: |- + function run_check() { + if $(grep -q '"prettier"' "$1") ; then + pushd "$(dirname $1)" + echo "Running prettier on $(pwd)" + npx prettier -c '**/*.{js,jsx,ts,tsx,css,md,json}' + popd + fi + } + find . -type f -name 'package.json' ! -path '*node_modules*' -print0 | while IFS= read -r -d '' file; do + run_check "$file" + done # i18n is not a node package, so we handle that one separately format-i18n: