Skip to content

Commit 525d197

Browse files
committed
fix nightly testing ci zulip message
1 parent 6eebe20 commit 525d197

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/nightly_detect_failure.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
type: 'stream'
2323
topic: 'Batteries status updates'
2424
content: |
25-
❌ The latest CI for Batteries' branch#nightly-testing has [failed](https://github.com/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}) ([${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})).
25+
❌ The latest CI for Batteries' [nightly-testing branch](https://github.com/${{ github.repository }}/tree/nightly-testing) has [failed](https://github.com/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}) ([${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})).
2626
You can `git fetch; git checkout nightly-testing` and push a fix.
2727
2828
handle_success:
@@ -84,13 +84,13 @@ jobs:
8484
}
8585
response = client.get_messages(request)
8686
messages = response['messages']
87-
if not messages or messages[0]['content'] != f"✅ The latest CI for Batteries' branch#nightly-testing has succeeded! ([{os.getenv('SHA')}](https://github.com/${{ github.repository }}/commit/{os.getenv('SHA')}))":
87+
if not messages or messages[0]['content'] != f"✅ The latest CI for Batteries' [nightly-testing branch](https://github.com/${{ github.repository }}/tree/nightly-testing) has succeeded! ([{os.getenv('SHA')}](https://github.com/${{ github.repository }}/commit/{os.getenv('SHA')}))":
8888
# Post the success message
8989
request = {
9090
'type': 'stream',
9191
'to': 'nightly-testing',
9292
'topic': 'Batteries status updates',
93-
'content': f"✅ The latest CI for Batteries' branch#nightly-testing has succeeded! ([{os.getenv('SHA')}](https://github.com/${{ github.repository }}/commit/{os.getenv('SHA')}))"
93+
'content': f"✅ The latest CI for Batteries' [nightly-testing branch](https://github.com/${{ github.repository }}/tree/nightly-testing) has succeeded! ([{os.getenv('SHA')}](https://github.com/${{ github.repository }}/commit/{os.getenv('SHA')}))"
9494
}
9595
result = client.send_message(request)
9696
print(result)

0 commit comments

Comments
 (0)