Skip to content

Commit 99982c8

Browse files
Handle the changed files arrays properly
1 parent 9191fac commit 99982c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pr-autofix.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ jobs:
2828
extensions: '.js'
2929

3030
- name: Run prettier
31-
if: steps.changed-js.outputs.filtered != ''
32-
run: yarn run format-files ${{ steps.changed-js.outputs.filtered }}
31+
if: steps.changed-js.outputs.filtered != '[]'
32+
run: echo '${{ steps.changed-js.outputs.filtered }}' | jq -r .[] | xargs yarn run format-files
3333

3434
- name: Rebuild our "dist" file
35-
if: steps.changed.outputs.files != ''
35+
if: steps.changed.outputs.files != '[]'
3636
run: yarn build
3737

3838
- uses: Khan/autofix-commit-action@main

0 commit comments

Comments
 (0)