Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
workflows: Add job to check all required jobs.
Anders Kaseorg4f92d3263887
diff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.ymlindex 7ce12fa755c..87e37f0ef1e 100644--- a/.github/workflows/production-suite.yml+++ b/.github/workflows/production-suite.yml@@ -323,3 +323,17 @@ jobs:topic: ${{ steps.failure_report_string.outputs.topic }}type: "stream"content: ${{ steps.failure_report_string.outputs.content }}++ required-jobs:+ name: "Required jobs"+ if: always()+ needs:+ - production_build+ - production_install+ - production_upgrade+ runs-on: ubuntu-slim+ steps:+ - name: "Check required jobs"+ run: jq 'with_entries(.value |= .result | select(.value | IN("success", "skipped") | not)) | if . != {} then halt_error end' <<<"$NEEDS"+ env:+ NEEDS: ${{ toJSON(needs) }}diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.ymlindex 1a4d713c43d..89602c03144 100644--- a/.github/workflows/zulip-ci.yml+++ b/.github/workflows/zulip-ci.yml@@ -270,3 +270,15 @@ jobs:topic: ${{ steps.failure_report_string.outputs.topic }}type: "stream"content: ${{ steps.failure_report_string.outputs.content }}++ required-jobs:+ name: "Required jobs"+ if: always()+ needs:+ - tests+ runs-on: ubuntu-slim+ steps:+ - name: "Check required jobs"+ run: jq 'with_entries(.value |= .result | select(.value | IN("success", "skipped") | not)) | if . != {} then halt_error end' <<<"$NEEDS"+ env:+ NEEDS: ${{ toJSON(needs) }}