Skip to content

Commit

Permalink
Send Slack notification on Deployment from Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
edavey committed Sep 24, 2024
1 parent 044167d commit a739f3e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/heroku-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,17 @@ jobs:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}

slackNotification:
name: Slack Notification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff'
# SLACK_ICON: https://github.com/rtCamp.png?size=48
# SLACK_MESSAGE: 'Post Content :rocket:'
# SLACK_TITLE: Post Title

0 comments on commit a739f3e

Please sign in to comment.