--- name: CI Build Status on: workflow_run: workflows: - CI types: - completed jobs: on-success: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Webhook uses: zzzze/webhook-trigger@master with: data: "{\"text\":\"cake-addresses build succeeded\"}" webhook_url: "https://chat.ops.hipowered.dev/hooks/697436db05042b4dd9cce240/hZCMq7jCPqHprKFcWp3v49wsf4MaN6caWdh7F8iXiSyr6Ts9" options: "-H \"Content-Type: application/json\"" on-failure: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'failure' }} steps: - name: Webhook uses: zzzze/webhook-trigger@master with: data: "{\"text\":\"cake-addresses build failed\"}" webhook_url: "https://chat.ops.hipowered.dev/hooks/697436db05042b4dd9cce240/hZCMq7jCPqHprKFcWp3v49wsf4MaN6caWdh7F8iXiSyr6Ts9" options: "-H \"Content-Type: application/json\""