Skip to content
This repository was archived by the owner on Oct 29, 2022. It is now read-only.

Commit 0d282c9

Browse files
committed
Commit autoformatter changes back to pull requests
1 parent 4373a5b commit 0d282c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ jobs:
1818
run: pip install pre-commit
1919

2020
- name: Run pre-commit hooks
21+
id: pre-commit
2122
run: pre-commit run --all-files
23+
24+
- name: Commit autoformatting changes back to pull request
25+
if: always() && (steps.pre-commit.outcome == 'failure') && (github.event_name == 'pull_request')
26+
run: echo "Would autoformat"

0 commit comments

Comments
 (0)