Created
October 7, 2020 17:37
-
-
Save beniusij/abe21e033dd8ad188af637812e424e11 to your computer and use it in GitHub Desktop.
A simple GitHub workflow that uses Slack Webhook to notify users in particular Slack channel about new or reopened issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Slack Notification | |
on: | |
issues: | |
types: [opened, reopened] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
Notify: | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Send notification on Slack | |
uses: rtCamp/action-slack-notify@v2.1.0 | |
env: | |
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL}} | |
SLACK_COLOR: '#F5BD1F' | |
SLACK_ICON: https://bluetel-general-assets.s3.eu-west-2.amazonaws.com/info-48.png | |
SLACK_MESSAGE: "A new issue has been opened for ${{ github.repository }}: https://github.com/${{ github.repository }}/issues" | |
SLACK_TITLE: New issue alert | |
SLACK_USERNAME: 'Open Sauce Sentry' | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment