We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f8135d commit c096104Copy full SHA for c096104
1 file changed
.github/workflows/pre-commit.yml
@@ -48,6 +48,7 @@ jobs:
48
uses: pre-commit/action@v3.0.1
49
50
- name: Push auto-fixes
51
+ id: push-fixes
52
if: ${{ !cancelled() && steps.pre-commit.outcome == 'failure' }}
53
run: |
54
if git diff --quiet; then
@@ -59,3 +60,9 @@ jobs:
59
60
git commit -m "Apply pre-commit auto-fixes"
61
git push
62
fi
63
+
64
+ - name: Annotate codespell errors
65
+ if: ${{ !cancelled() && steps.push-fixes.outcome == 'failure' }}
66
+ run: |
67
+ pre-commit run --all-files codespell 2>&1 |
68
+ sed -n 's/^\([^:]*\):\([0-9]*\): \(.*\)$/::error file=\1,line=\2::\3/p'
0 commit comments