diff --git a/.github/workflows/build-client-server-count.yml b/.github/workflows/build-client-server-count.yml index 824d53be2b1e..c15a92947b0c 100644 --- a/.github/workflows/build-client-server-count.yml +++ b/.github/workflows/build-client-server-count.yml @@ -292,7 +292,7 @@ jobs: fi - name: Add a comment on the PR with new CI failures - if: env.ci_test_failed == 'true' && needs.file-check.outputs.pr != '0' + if: env.ci_test_failed != 'true' && needs.file-check.outputs.pr != '0' uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{fromJson(needs.file-check.outputs.pr)}} @@ -306,7 +306,7 @@ jobs: ``` - name: Add a comment on the PR when ci-test-limited is successful - if: env.ci_test_failed != 'true' && needs.file-check.outputs.pr != '0' + if: env.ci_test_failed == 'true' && needs.file-check.outputs.pr != '0' uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{fromJson(needs.file-check.outputs.pr)}} @@ -451,7 +451,7 @@ jobs: fi - name: Add a comment on the PR with new CI failures - if: env.ci_test_failed == 'true' && needs.file-check.outputs.pr != '0' + if: env.ci_test_failed != 'true' && needs.file-check.outputs.pr != '0' uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{fromJson(needs.file-check.outputs.pr)}} @@ -465,7 +465,7 @@ jobs: ``` - name: Add a comment on the PR when ci-test-limited-existing-docker-image is success - if: env.ci_test_failed != 'true' && needs.file-check.outputs.pr != '0' + if: env.ci_test_failed == 'true' && needs.file-check.outputs.pr != '0' uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{fromJson(needs.file-check.outputs.pr)}}