Hi! From the `cloudposse/github-action-pre-commit`...
# github-actions
i
Hi! From the
cloudposse/github-action-pre-commit
docs: By default, all hooks are run. Here's a sample step configuration that only runs the
flake8
hook against all the files (use the template above except for the
pre-commit
action):
Copy code
- uses: cloudposse/github-action-pre-commit@v3.0.0
      with:
        extra_args: flake8 --all-files
How to run multiple hooks, BUT NOT a single hook OR all hooks? This fails:
Copy code
- uses: cloudposse/github-action-pre-commit@v3.0.0
      with:
        extra_args: black mypy isort flake8 --all-files
🙌 1
r
I don't think it's possible. What might be better is to create a run step that runs your specific hook then find and run an action that pushes up changes.
Copy code
jobs:
  precommit:
    steps:
      - use: actions/checkout@v4
      - run: |
          pre-commit run flake8
      # another action that pushes up changes if any changes exist
i
Hi @RB and thank you for the feedback 👍
r
np! if you find a better solution, please post here. this is just my personal perspective