Skip to content

Commit

Permalink
Handle the changed files arrays properly
Browse files Browse the repository at this point in the history
  • Loading branch information
somewhatabstract committed Apr 5, 2024
1 parent 9191fac commit 99982c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99982c8

Please sign in to comment.