Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

ci: Only report failures to CZO on branch pushes.

Josh Klara67ecc0f361d
diff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.yml
index be99330bdbe..e4b246c3ff8 100644
--- a/.github/workflows/production-suite.yml
+++ b/.github/workflows/production-suite.yml
@@ -106,11 +106,11 @@ jobs:
- name: Generate failure report string
id: failure_report_string
- if: ${{ failure() && github.repository == 'zulip/zulip' }}
+ if: ${{ failure() && github.repository == 'zulip/zulip' && github.event_name == 'push' }}
run: tools/ci/generate-failure-message >> $GITHUB_OUTPUT
- name: Report status to CZO
- if: ${{ failure() && github.repository == 'zulip/zulip' }}
+ if: ${{ failure() && github.repository == 'zulip/zulip' && github.event_name == 'push' }}
uses: zulip/github-actions-zulip/send-message@v1
with:
api-key: ${{ secrets.ZULIP_BOT_KEY }}
@@ -211,11 +211,11 @@ jobs:
- name: Generate failure report string
id: failure_report_string
- if: ${{ failure() && github.repository == 'zulip/zulip' }}
+ if: ${{ failure() && github.repository == 'zulip/zulip' && github.event_name == 'push' }}
run: tools/ci/generate-failure-message >> $GITHUB_OUTPUT
- name: Report status to CZO
- if: ${{ failure() && github.repository == 'zulip/zulip' }}
+ if: ${{ failure() && github.repository == 'zulip/zulip' && github.event_name == 'push' }}
uses: zulip/github-actions-zulip/send-message@v1
with:
api-key: ${{ secrets.ZULIP_BOT_KEY }}
@@ -296,11 +296,11 @@ jobs:
- name: Generate failure report string
id: failure_report_string
- if: ${{ failure() && github.repository == 'zulip/zulip' }}
+ if: ${{ failure() && github.repository == 'zulip/zulip' && github.event_name == 'push' }}
run: tools/ci/generate-failure-message >> $GITHUB_OUTPUT
- name: Report status to CZO
- if: ${{ failure() && github.repository == 'zulip/zulip' }}
+ if: ${{ failure() && github.repository == 'zulip/zulip' && github.event_name == 'push' }}
uses: zulip/github-actions-zulip/send-message@v1
with:
api-key: ${{ secrets.ZULIP_BOT_KEY }}
diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.yml
index 5f234d0873e..a9014a38ec2 100644
--- a/.github/workflows/zulip-ci.yml
+++ b/.github/workflows/zulip-ci.yml
@@ -235,11 +235,11 @@ jobs:
- name: Generate failure report string
id: failure_report_string
- if: ${{ failure() && github.repository == 'zulip/zulip' }}
+ if: ${{ failure() && github.repository == 'zulip/zulip' && github.event_name == 'push' }}
run: tools/ci/generate-failure-message >> $GITHUB_OUTPUT
- name: Report status to CZO
- if: ${{ failure() && github.repository == 'zulip/zulip' }}
+ if: ${{ failure() && github.repository == 'zulip/zulip' && github.event_name == 'push' }}
uses: zulip/github-actions-zulip/send-message@v1
with:
api-key: ${{ secrets.ZULIP_BOT_KEY }}