Skip to content

log failure

log failure #47

Workflow file for this run

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