Mend Slack Notifier #1486
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: 'Mend Slack Notifier' | |
on: | |
discussion: | |
types: [labeled] | |
permissions: | |
discussions: read | |
jobs: | |
slack: | |
if: contains(github.event.label.name, 'mend-app') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Post to Slack | |
id: slack | |
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0 | |
with: | |
channel-id: 'C05NLTMGCJC' | |
# For posting a simple plain text message | |
slack-message: '<${{ github.event.discussion.html_url }}|${{ github.event.discussion.title }}>' | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |