Skip to content

Commit 8adb12a

Browse files
authored
Merge pull request #667 from auth0/master
Post a message to slack on events
2 parents 17287a2 + ae3205e commit 8adb12a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/slack-message.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: slack-notification
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
pull_request_review:
7+
types: [submitted]
8+
pull_request_review_comment:
9+
types: [created]
10+
issues:
11+
types: [opened]
12+
issue_comment:
13+
types: [created]
14+
15+
jobs:
16+
slack-notification:
17+
runs-on: ubuntu-latest
18+
name: Sends a message to Slack when a pull request or an issue is made
19+
steps:
20+
- name: Send message to Slack API
21+
uses: archive/github-actions-slack@master
22+
with:
23+
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
24+
slack-channel: ${{ secrets.SLACK_BOT_CHANNEL }}
25+
slack-text: A new <https://github.com/"${{ github.repository }}"|"${{ github.event_name }}"> was made in *"${{ github.repository }}*".
26+
slack-optional-icon_emoji: ":robot_face:"
27+
- name: Result from "Send Message"
28+
run: echo "The result was ${{ steps.notify.outputs.slack-result }}"

0 commit comments

Comments
 (0)