diff --git a/.github/workflows/autoformat.yml b/.github/workflows/autoformat.yml index c690f542b7e8b..86b21da1e1f04 100644 --- a/.github/workflows/autoformat.yml +++ b/.github/workflows/autoformat.yml @@ -90,11 +90,14 @@ jobs: git remote add base https://github.com/${{ needs.check-comment.outputs.base_repo }}.git git fetch base ${{ needs.check-comment.outputs.base_ref }} git merge base/${{ needs.check-comment.outputs.base_ref }} + - uses: ./.github/actions/setup-python + - run: | + pip install -r requirements/lint-requirements.txt + pre-commit install # ************************************************************************ # Prettier # ************************************************************************ - run: | - pre-commit install pre-commit run prettier --all-files --color=always || true # ************************************************************************ # protos @@ -110,11 +113,6 @@ jobs: # ************************************************************************ # python # ************************************************************************ - - if: steps.diff.outputs.python == 'true' - uses: ./.github/actions/setup-python - - if: steps.diff.outputs.python == 'true' - run: | - pip install -r requirements/lint-requirements.txt - if: steps.diff.outputs.python == 'true' run: | ruff --fix .