From 6afb96a0375739278378c24a72349a63222ccb41 Mon Sep 17 00:00:00 2001 From: Adithya Sv Date: Fri, 19 Jul 2024 15:51:47 +0530 Subject: [PATCH] integrating slack channel (#9) * Create slack-notify.yml * Update README.md * Update slack-notify.yml * Update slack web-hook property name SLACK_WEBHOOK --- .github/workflows/slack-notify.yml | 30 ++++++++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/slack-notify.yml diff --git a/.github/workflows/slack-notify.yml b/.github/workflows/slack-notify.yml new file mode 100644 index 0000000..4d5e33f --- /dev/null +++ b/.github/workflows/slack-notify.yml @@ -0,0 +1,30 @@ +name: Notify Slack + +on: + pull_request: + types: + - assigned + - unassigned + - labeled + - unlabeled + - opened + - edited + - closed + - reopened + - synchronize + - ready_for_review + - locked + - unlocked + - review_requested + - review_request_removed + +jobs: + slackNotification: + runs-on: ubuntu-latest + steps: + - name: Send notification to Slack + uses: rtCamp/action-slack-notify@v2.1.0 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_USERNAME: 'GitHub Actions' + SLACK_MESSAGE: 'A new push has been made to the repository!' diff --git a/README.md b/README.md index f1acb35..4afd11e 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,6 @@ docker exec -it 89d4f551353f /opt/kafka/bin/kafka-console-producer.sh --broker-l ```shell docker exec -it 89d4f551353f /opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic my-topic --from-beginning ``` + + +slack: https://app.slack.com/client/T07D61D72RY/C07D5TQCS1H