Skip to content

Commit

Permalink
fixing slack report
Browse files Browse the repository at this point in the history
  • Loading branch information
brandenrodgers committed Aug 22, 2024
1 parent 1723ffc commit cfa7066
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
status: ${{ job.status }}
notify_when: 'failure'
notification_title: 'CLI build failure'
message_format: '{emoji} *Build* {status_message} in <{repo_url}|{repo}> on <{commit_url}|{commit_sha}>"'
message_format: '{emoji} *Build* {status_message} in <{repo_url}|{repo}> on <{commit_url}|{commit_sha}>'
footer: '<{run_url}|View Run>'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
20 changes: 11 additions & 9 deletions .github/workflows/testLatestPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@ jobs:
- name: Sleep For 3 Mins
run: sleep 180s
shell: bash
- name: Scheduled Test Slack Report
uses: ravsamhq/notify-slack-action@master
with:
status: ${{ job.status }}
notify_when: 'failure'
notification_title: '{workflow} has {status_message}'
message_format: '{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
- name: Use Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -34,3 +25,14 @@ jobs:
env:
PORTAL_ID: ${{ secrets.ACCEPTANCE_TEST_PORTAL_ID }}
PERSONAL_ACCESS_KEY: ${{ secrets.ACCEPTANCE_TEST_PERSONAL_ACCESS_KEY }}
- name: Build Failure Slack Report
uses: ravsamhq/notify-slack-action@v2
if: ${{ always() && github.ref_name == 'main' }}
with:
status: ${{ job.status }}
notify_when: 'failure'
notification_title: 'CLI latest release failure'
message_format: '{emoji} *Release* {status_message}'
footer: '<{run_url}|View Run> | <https://www.npmjs.com/package/@hubspot/cli?activeTab=versions|View in npm>'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}

0 comments on commit cfa7066

Please sign in to comment.