Fix typo in documentation and add error handling in action and monito… #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: pre-commit | |
on: | |
pull_request: | |
push: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Required to grab the full history for proper pre-commit checks | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: ".github/workflows/action-python-version" | |
- name: Run pre-commit | |
uses: pre-commit/action@v3.0.1 | |
with: | |
extra_args: >- | |
--color=always | |
--from-ref ${{ github.event.pull_request.base.sha || github.event.before }} | |
--to-ref ${{ github.event.pull_request.head.sha || github.sha }} | |
--hook-stage manual |