log failure #47
Workflow file for this run
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: "Run pre-commit" | |
on: | |
pull_request: | |
push: | |
jobs: | |
pre-commit: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v3" | |
- uses: "actions/setup-python@v4" | |
with: | |
python-version: 3.x | |
- uses: "pre-commit/[email protected]" | |
with: | |
extra_args: -v | |
- name: Check pre-commit log | |
if: failure() # This step will run only if the previous step fails | |
run: | | |
echo "Displaying pre-commit log contents..." | |
cat /home/runner/.cache/pre-commit/pre-commit.log |