Skip to content

Commit e626a76

Browse files
authored
feat: updates nightly error msg (#3764)
* updates nightly error msg * remove target files * update gitignore
1 parent 52e3857 commit e626a76

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

.github/workflows/nightly-ci.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ jobs:
7979
fi
8080
if [ "$STATUS" == "unhealthy" ]; then
8181
echo "Container became unhealthy."
82+
docker logs cat-gateway
8283
exit 1
8384
fi
8485
sleep 5
@@ -116,6 +117,7 @@ jobs:
116117
fi
117118
if [ "$STATUS" == "unhealthy" ]; then
118119
echo "Container became unhealthy."
120+
docker logs cat-gateway
119121
exit 1
120122
fi
121123
sleep 5
@@ -137,8 +139,31 @@ jobs:
137139
- uses: slackapi/[email protected]
138140
with:
139141
payload: |
140-
{
141-
"text": ":😭: *Nightly Tests Failed* @channel "
142-
}
142+
{
143+
"text": "😭 *Voices Nightly Tests Failed* 😭",
144+
"attachments": [
145+
{
146+
"color": "danger",
147+
"blocks": [
148+
{
149+
"type": "section",
150+
"text": {
151+
"type": "mrkdwn",
152+
"text": "*Workflow:* ${{ github.workflow }} failed on ${{ github.ref_name }}.\n\n*Action Required:* <!channel> please review the logs."
153+
}
154+
},
155+
{
156+
"type": "context",
157+
"elements": [
158+
{
159+
"type": "mrkdwn",
160+
"text": "View Logs: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Click here>"
161+
}
162+
]
163+
}
164+
]
165+
}
166+
]
167+
}
143168
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
144169
webhook-type: webhook-trigger

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,7 @@ browser_extensions/
133133
.env
134134

135135
# Playwright
136-
/browser-profiles/
136+
/browser-profiles/
137+
138+
# Rust analyzer
139+
/target

0 commit comments

Comments
 (0)