From 99982c817c2237337f74be5ee7e9718b535a02c9 Mon Sep 17 00:00:00 2001 From: Jeff Yates Date: Fri, 5 Apr 2024 13:01:02 -0500 Subject: [PATCH] Handle the changed files arrays properly --- .github/workflows/pr-autofix.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-autofix.yml b/.github/workflows/pr-autofix.yml index 1857945..8921267 100644 --- a/.github/workflows/pr-autofix.yml +++ b/.github/workflows/pr-autofix.yml @@ -28,11 +28,11 @@ jobs: extensions: '.js' - name: Run prettier - if: steps.changed-js.outputs.filtered != '' - run: yarn run format-files ${{ steps.changed-js.outputs.filtered }} + if: steps.changed-js.outputs.filtered != '[]' + run: echo '${{ steps.changed-js.outputs.filtered }}' | jq -r .[] | xargs yarn run format-files - name: Rebuild our "dist" file - if: steps.changed.outputs.files != '' + if: steps.changed.outputs.files != '[]' run: yarn build - uses: Khan/autofix-commit-action@main