Skip to content

Commit 4b0a823

Browse files
Update pre-commit-lite conditions (#214)
* update pre-commit-lite conditions * correction * [pre-commit.ci lite] apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 718e92b commit 4b0a823

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ jobs:
3131
run: poetry install --no-interaction --no-ansi
3232
# run pre-commit
3333
- uses: pre-commit/action@v3.0.1
34+
id: pre_commit
3435
# run pre-commit ci lite for automated fixes
3536
- uses: pre-commit-ci/lite-action@v1.1.0
36-
if: ${{ !cancelled() }}
37+
if: ${{ !cancelled() && steps.pre_commit.outcome == 'failure' }}
3738
run_tests:
3839
strategy:
3940
matrix:

0 commit comments

Comments
 (0)