Skip to content

Commit

Permalink
Merge pull request #54 from oslabs-beta/feature/raisa-cicd
Browse files Browse the repository at this point in the history
Feature/raisa cicd
  • Loading branch information
fraisai authored Nov 28, 2023
2 parents 5cc290e + 411e91e commit 82c7f7f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/slack-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Slack Notification of CI Status

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
slackNotification:
name: Slack CI status message
runs-on: ubuntu-latest
steps:
- name: Slack Notify on Failure
if: ${{ failure() }}
id: slack
uses: slackapi/[email protected]
with:
channel-id: 'C067F896WG5'
slack-message: "Github CI Result: ${{ job.status }}\nGithub PR/Commit URL: ${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 comments on commit 82c7f7f

Please sign in to comment.