Skip to content

Commit 3283dda

Browse files
Merge pull request #438 from redhat-openshift-ecosystem/ISV-4601-2
[ISV-46010] Move notifications from GChat to Slack channel
2 parents 91a30ee + 74b662a commit 3283dda

File tree

1 file changed

+2
-37
lines changed

1 file changed

+2
-37
lines changed

ci/templates/workflow/operator_release.yaml.js2

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff 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 %}

0 commit comments

Comments
 (0)