Skip to content

Commit b042c5a

Browse files
committed
only run n comment containing \n/ci
1 parent bccbf90 commit b042c5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/diff.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
outputs:
1010
diffs: ${{ steps.regress-ci.outputs.diffs }}
11-
if: ${{ github.event.issue.pull_request }}
11+
if: github.event.issue.pull_request && (contains(github.event.comment.body, '\n/ci') || startsWith(github.event.comment.body, '/ci'))
1212
steps:
1313
- uses: actions/checkout@v4
1414

@@ -63,7 +63,7 @@ jobs:
6363
summary:
6464
runs-on: ubuntu-latest
6565
needs: [diff, generate]
66-
if: always() && needs.generate.outputs.diffs != '{}' && needs.generate.outputs.diffs != '[]' && needs.generate.outputs.diffs != ''
66+
if: always() && needs.generate.outputs.diffs != '{}' && needs.generate.outputs.diffs != '[]' && needs.generate.outputs.diffs != '' && needs.generate.result == 'success'
6767
steps:
6868
- uses: actions/checkout@v4
6969

0 commit comments

Comments
 (0)