blob: 14a0f4fc32bfc738ec75167ad3a26457f2c6ae50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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@fcfb566f8b0aab22203f066d80ca1d7e4b5d05b3 # v1.27.1
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 }}
|