Browse Source
Run resolve-comment step on success regardless of changed-file count
pull/25415/head
maliming
3 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
5 additions and
1 deletions
-
.github/workflows/check-docs-syntax.yml
|
|
|
@ -179,7 +179,11 @@ jobs: |
|
|
|
} |
|
|
|
|
|
|
|
- name: Resolve previous failure comment on success |
|
|
|
if: success() && (steps.changed.outputs.count != '0' || steps.changed.outputs.paramsChanged == 'true') |
|
|
|
# Clear any stale failure comment whenever this workflow run is green, |
|
|
|
# even if the syntax checker step was skipped (e.g. when a later |
|
|
|
# commit reverts the earlier failure so no markdown files appear in |
|
|
|
# the PR's net diff). |
|
|
|
if: success() |
|
|
|
uses: actions/github-script@v7 |
|
|
|
with: |
|
|
|
script: | |
|
|
|
|