-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathblocks.yml
More file actions
36 lines (35 loc) · 1.36 KB
/
blocks.yml
File metadata and controls
36 lines (35 loc) · 1.36 KB
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Post an inline block message
on:
push:
branches:
- main
jobs:
run:
name: Share a travel review to channel
runs-on: ubuntu-latest
steps:
- name: Write the review
uses: slackapi/slack-github-action@v3.0.1
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
text: "Danny Torrence left a 1 star review for your property."
blocks:
- type: "section"
text:
type: "mrkdwn"
text: "Danny Torrence left the following review for your property:"
- type: "section"
text:
type: "mrkdwn"
text: "<https://example.com|*Overlook Hotel*> :star: \n Doors had too many axe holes, guest in room 237 was far too rowdy, whole place felt stuck in the 1920s."
accessory:
type: "image"
image_url: "https://is5-ssl.mzstatic.com/image/thumb/Purple3/v4/d3/72/5c/d3725c8f-c642-5d69-1904-aa36e4297885/source/256x256bb.jpg"
alt_text: "Haunted hotel image"
- type: "section"
fields:
- type: "mrkdwn"
text: "*Average Rating*: 1.0"