11
0
Fork 0
mirror of https://github.com/pre-commit/action.git synced 2026-04-09 07:24:16 +00:00

remove pushing behaviour

This commit is contained in:
Anthony Sottile 2022-06-05 15:11:52 -04:00
parent c67424282e
commit f5c2d257b4
11 changed files with 49 additions and 4331 deletions

View file

@ -1,13 +1,20 @@
name: pre-commit
description: run pre-commit and optionally commit back to the pull request
description: run pre-commit
inputs:
extra_args:
description: options to pass to pre-commit run
required: false
default: '--all-files'
token:
description: github token to clone / push with
required: false
runs:
using: 'node12'
main: 'dist/index.js'
using: composite
steps:
- run: python -m pip install pre-commit
shell: bash
- run: python -m pip freeze --local
shell: bash
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- run: pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
shell: bash