aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-12-27 13:17:23 -0800
committerGravatar MarkKoz <[email protected]>2021-12-27 13:17:23 -0800
commitcc9aca96b3e7abab5dd8288867ff0f64af77ad9b (patch)
treef53b1029766cc5ad3261a562aca75fb9df762da0
parentCI: fix flake8 being skipped (diff)
CI: fix pre-commit logs step condition
The step was running even if the pre-commit hooks step never ran.
-rw-r--r--.github/workflows/lint.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml
index 642db62..98b204a 100644
--- a/.github/workflows/lint.yaml
+++ b/.github/workflows/lint.yaml
@@ -63,7 +63,7 @@ jobs:
# Show the log to debug failures.
- name: Show pre-commit log
- if: always() && steps.run-pre-commit-hooks.outcome != 'success'
+ if: always() && steps.run-pre-commit-hooks.outcome == 'failure'
run: cat "${PRE_COMMIT_HOME}/pre-commit.log"
# Output linting errors in the format GitHub Actions recognises for