WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit f5e15bc

Browse files
committed
fix: remove continue-on-error
1 parent 1b3e606 commit f5e15bc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/autoreview.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
files: '**/*.md'
3939

4040
- name: Running autocorrect
41-
continue-on-error: true
4241
if: steps.changed-files.outputs.any_changed == 'true'
4342
env:
4443
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -48,23 +47,30 @@ jobs:
4847
reviewdog -f=rdjson -level=warning -reporter=github-pr-review -fail-level=warning
4948
- name: Running markdownlint
5049
uses: reviewdog/[email protected]
51-
continue-on-error: true
5250
if: steps.changed-files.outputs.any_changed == 'true'
5351
with:
5452
github_token: ${{ secrets.GITHUB_TOKEN }}
5553
reporter: github-pr-review
5654
markdownlint_flags: ${{ steps.changed-files.outputs.all_changed_files }}
5755
fail_level: error
58-
- name: Post comment
56+
- name: Post comment if failure
5957
uses: thollander/actions-comment-pull-request@v3
6058
if: failure()
6159
with:
60+
comment-tag: autoreview-comment
6261
message: |
6362
源码格式/语法检查未通过,请根据 GitHub Action 给出的 Code Review 审查建议进行修改。
6463
6564
对于有争议的修改建议,可暂时不进行修改并在 PR 中进行讨论。
6665
6766
> 注:可通过 "Files changed" 页面中的 "Add suggestion to batch" 功能来批量采纳修改建议。
67+
- name: Post comment if success
68+
uses: thollander/actions-comment-pull-request@v3
69+
if: success()
70+
with:
71+
comment-tag: autoreview-comment
72+
message: |
73+
源码格式/语法检查已通过。
6874
6975
# - name: Check punctuation
7076
# if: steps.changed-files.outputs.any_changed == 'true'

0 commit comments

Comments
 (0)