diff --git a/.github/actions/js-lint/action.yml b/.github/actions/js-lint/action.yml index 914b7861..29715886 100644 --- a/.github/actions/js-lint/action.yml +++ b/.github/actions/js-lint/action.yml @@ -16,6 +16,9 @@ runs: node-version: 16.x - run: | yarn + shell: bash + working-directory: ${{ inputs.working-directory }} + - run: | yarn prettier --check . shell: bash working-directory: ${{ inputs.working-directory }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e3faf98b..984c2dd9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -82,12 +82,12 @@ jobs: runs-on: ubuntu-latest outputs: # Check if the changed status of py is true - updates: steps.changes.outputs.py == 'true' + updates: steps.filter.outputs.py == 'true' steps: # Use paths-filter to determine which paths have changes # https://github.com/dorny/paths-filter - uses: dorny/paths-filter@v2 - id: changes + id: filter with: filters: | py: "**.py"