From c3a1532e7cb98f3a2e2685aec085aa177239ef3e Mon Sep 17 00:00:00 2001 From: Ethan Bickel Date: Thu, 3 Oct 2024 14:41:23 -0500 Subject: [PATCH] fix formatting check --- .github/workflows/prettierCheck.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prettierCheck.yml b/.github/workflows/prettierCheck.yml index e642ea75..09538a2f 100644 --- a/.github/workflows/prettierCheck.yml +++ b/.github/workflows/prettierCheck.yml @@ -16,9 +16,11 @@ jobs: npm i --no-save prettier prettier-plugin-tailwindcss mv package.json.bak package.json - name: Run prettier + id: prettier + continue-on-error: true run: | - files=`npx prettier . -l` || st=$? && st=$? - echo status=`echo $st`>>"$GITHUB_ENV" - echo files=`echo $files`>> "$GITHUB_ENV" + echo "files=${npx prettier . -l}">> "$GITHUB_ENV" - name: generate errors/summary run: .github/workflows/generateCheck.sh + env: + status: ${{ success() && 0 || 1 }}