-
Notifications
You must be signed in to change notification settings - Fork 31
50 lines (41 loc) · 1.58 KB
/
8-slack-notification-line-breaks.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
38
39
40
41
42
43
44
45
46
47
48
49
50
name: test-8-slack-notification-line-breaks
on: [push]
jobs:
slack-action:
#if: ${{ false }}
runs-on: windows-latest
name: Test 8 [windows-latest]
steps:
- name: Send Slack Message 1/3
uses: archive/github-actions-slack@master
id: send-message-1
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: C036UR2P5BM
slack-text: |
Test 8 - 1/3!
This
should
have
line
breaks...
- name: Result from "Send Slack Message"
run: echo '${{ steps.send-message-1.outputs.slack-result }}'
- name: Send Slack Message 2/3
uses: archive/github-actions-slack@master
id: send-message-2
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: C036UR2P5BM
slack-text: "Test 8 - 2/3!\n\nThis\nshould\nhave\nline\nbreaks..."
- name: Result from "Send Slack Message"
run: echo '${{ steps.send-message-2.outputs.slack-result }}'
- name: Send Slack Message 3/3
uses: archive/github-actions-slack@master
id: send-message-3
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: C036UR2P5BM
slack-text: "${{ format('{0}\n\n```{1}```', 'Test 8 - 3/3', toJson(runner)) }}"
- name: Result from "Send Slack Message"
run: echo '${{ steps.send-message-3.outputs.slack-result }}'