8000 Create slack.yml · jorwoods/server-client-python@0c4fd4a · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c4fd4a

Browse files
authored
Create slack.yml
Created a new action from https://github.com/marketplace/actions/send-message-to-slack
1 parent ec3cc50 commit 0c4fd4a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/slack.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 💬 Send Message to Slack 🚀
2+
3+
on: [push, pull_request, issues]
4+
5+
jobs:
6+
slack-notifications:
7+
runs-on: ubuntu-20.04
8+
name: Sends a message to Slack when a push, a pull request or an issue is made
9+
steps:
10+
- name: Send message to Slack API
11+
uses: archive/github-actions-slack@v2.0.1
12+
id: notify
13+
with:
14+
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
15+
slack-channel: C019HCX84L9
16+
slack-text: Hello! Event "${{ github.event_name }}" in "${{ github.repository }}" 🤓
17+
- name: Result from "Send Message"
18+
run: echo "The result was ${{ steps.notify.outputs.slack-result }}"

0 commit comments

Comments
 (0)
0