File tree Expand file tree Collapse file tree 1 file changed +2
-37
lines changed
Expand file tree Collapse file tree 1 file changed +2
-37
lines changed Original file line number Diff line number Diff line change @@ -1078,49 +1078,14 @@ jobs:
10781078 uses: ravsamhq/notify-slack-action@master
10791079 with:
10801080 notification_title: 'Release pipeline failed: ${{ needs.pr-check.outputs.opp_pr_title }}'
1081+ token: ${{ secrets.GITHUB_TOKEN }}
1082+ message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>. <{workflow_url}|View Workflow>"
10811083 footer: 'monitoring'
1082- # status: ${{ needs.pr-check.result }}
10831084 status: 'failure'
10841085 notify_when: 'failure'
10851086 env:
10861087 SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
10871088 continue-on-error: true
10881089
1089- - name: Google Chat Notification
1090- run: |
1091- echo "title: Release pipeline failed: ${{ needs.pr-check.outputs.opp_pr_title }}"
1092- echo "subtitle: failure"
1093- curl --location --request POST '${{ secrets.GCHAT_WEBHOOK }}' \
1094- --header 'Content-Type: application/json' \
1095- --data-raw '{
1096- "cards": [
1097- {
1098- "header": {
1099- "title": "Release pipeline failed: ${{ needs.pr-check.outputs.opp_pr_title }}",
1100- "subtitle": "failure"
1101- },
1102- "sections": [
1103- {
1104- "widgets": [
1105- {
1106- "buttons": [
1107- {
1108- "textButton": {
1109- "text": "Open the release queue",
1110- "onClick": {
1111- "openLink": {
1112- "url": "https://github.com/${{ github.repository }}/actions/workflows/operator_release.yaml"
1113- }
1114- }
1115- }
1116- }
1117- ]
1118- }
1119- ]
1120- }
1121- ]
1122- }
1123- ]
1124- }'
11251090{% endraw %}
11261091{% endif %}
You can’t perform that action at this time.
0 commit comments