-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #667 from auth0/master
Post a message to slack on events
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
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 }}" |