Skip to content

Commit

Permalink
reverted back, this seems to work fine
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinMShea committed Dec 12, 2024
1 parent 939d611 commit 6b0ce16
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/slack-notify-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,32 +77,24 @@ jobs:

- uses: r-lib/actions/check-r-package@v2

- name: Notify Slack - Build Started
uses: justinr636/github-action-slack-notify-build@v1
with:
channel: app-alerts
status: STARTED
color: warning
- name: GHA Slack Notify Build
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

- name: Notify Slack - Build Success
if: success()
uses: justinr636/github-action-slack-notify-build@v1
with:
channel: app-alerts
message_id: ${{ steps.slack.outputs.message_id }}
channel_id: C01MS7ECQ8Z
status: SUCCESS
color: good
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

- name: Notify Slack - Build Failure
- name: GHA Slack Notify Build
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: justinr636/github-action-slack-notify-build@v1
with:
channel: app-alerts
message_id: ${{ steps.slack.outputs.message_id }}
channel_id: C01MS7ECQ8Z
status: FAILED
color: danger
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

0 comments on commit 6b0ce16

Please sign in to comment.