forked from archive/github-actions-slack
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 1.33 KB
/
slack-update-message.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: slack-update-message
on: [push, issues]
jobs:
slack-update-message:
runs-on: ubuntu-20.04
name: Test 5 (Sends message on Push and Issue)
steps:
- name: Send Slack Message
uses: archive/github-actions-slack@master
id: send-message
with:
slack-function: send-message
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: CPPUV5KU0
slack-text: Test 5 - Message to update [at master]
- name: Send Slack Message Result
run: echo 'Data - ${{ steps.send-message.outputs.slack-result }}'
- name: Some step in between
run: echo '...'
- name: Send Slack Reaction To Message
uses: archive/github-actions-slack@master
with:
slack-function: update-message
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: ${{ fromJson(steps.send-message.outputs.slack-result).response.channel }}
slack-update-message-text: Test 5 - Message to update [at master] - updated
slack-update-message-ts: ${{ fromJson(steps.send-message.outputs.slack-result).response.message.ts }}
- name: Send Slack Reaction To Message Result
run: echo 'Data - ${{ steps.send-message.outputs.slack-result }}'