File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 - name : Check if all pods are running
5555 run : kubectl get pods -A -o jsonpath='{range .items[*]}{.status.phase}{"\n"}{end}' | grep -qv "^Running$" && echo "Not all pods are running" && exit 1 || echo "OK"
5656
57+ notify-slack :
58+ if : ${{ failure() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || github.event_name == 'schedule') }}
59+ needs : [test-last-release]
60+ runs-on : ubuntu-latest
61+ steps :
62+ - name : Notify Slack
63+ env :
64+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
65+ run : |
66+ curl -X POST "$SLACK_WEBHOOK_URL" \
67+ -H 'Content-Type: application/json' \
68+ -d "{
69+ \"username\": \"E2E tests in Kubernetes Helm Chart\",
70+ \"icon_emoji\": \":warning:\",
71+ \"text\": \":red_circle: *${{ github.workflow }}* failed on \`${{ github.ref_name }}\`\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View failing run>\"
72+ }"
You can’t perform that action at this time.
0 commit comments