Skip to content

Commit 8b5f11e

Browse files
committed
Tweaks to the workflow
1 parent 89359c1 commit 8b5f11e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/homebrew.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: "Smoke Test Homebrew install"
33
on:
44
schedule:
55
- cron: "0 0 * * *"
6-
pull_request: # TODO: remove pull_request trigger
76

87
jobs:
98
smoke-test-homebrew:
@@ -21,22 +20,21 @@ jobs:
2120
run: npx --yes mongodb-runner exec -- sh -c 'env MONGOSH_SMOKE_TEST_SERVER=$MONGODB_URI mongosh --smokeTests'
2221

2322
- name: Report failure
24-
# TODO: replace with failure()
25-
if: ${{ matrix.runner == 'macos-15' }}
23+
if: ${{ failure() }}
2624
env:
2725
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_MONGOSH_DEVEL_WEBHOOK_URL }}
2826
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
2927
uses: slackapi/[email protected]
3028
with:
3129
payload: |
3230
{
33-
"text": "Homebrew smoke test failed on macOS ${{ matrix.runner }}",
31+
"text": "Homebrew smoke test failed on ${{ matrix.runner }}",
3432
"blocks": [
3533
{
3634
"type": "section",
3735
"text": {
3836
"type": "mrkdwn",
39-
"text": "Homebrew smoke test failed on macOS ${{ matrix.runner }}: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }})|${{ github.run_id }}>"
37+
"text": "Homebrew smoke test failed on ${{ matrix.runner }}: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>"
4038
}
4139
}
4240
]

0 commit comments

Comments
 (0)