Skip to content

Commit

Permalink
Merge pull request #667 from auth0/master
Browse files Browse the repository at this point in the history
Post a message to slack on events
  • Loading branch information
Sambego authored Jun 29, 2020
2 parents 17287a2 + ae3205e commit 8adb12a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/slack-message.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: slack-notification

on:
pull_request:
types: [opened]
pull_request_review:
types: [submitted]
pull_request_review_comment:
types: [created]
issues:
types: [opened]
issue_comment:
types: [created]

jobs:
slack-notification:
runs-on: ubuntu-latest
name: Sends a message to Slack when a pull request or an issue is made
steps:
- name: Send message to Slack API
uses: archive/github-actions-slack@master
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: ${{ secrets.SLACK_BOT_CHANNEL }}
slack-text: A new <https://github.com/"${{ github.repository }}"|"${{ github.event_name }}"> was made in *"${{ github.repository }}*".
slack-optional-icon_emoji: ":robot_face:"
- name: Result from "Send Message"
run: echo "The result was ${{ steps.notify.outputs.slack-result }}"

0 comments on commit 8adb12a

Please sign in to comment.