Skip to content

Commit bc7ea82

Browse files
Fix Slack integration
1 parent 44c5239 commit bc7ea82

File tree

2 files changed

+55
-3
lines changed

2 files changed

+55
-3
lines changed

.github/workflows/release.yml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,60 @@ jobs:
3737
draft: true
3838
prerelease: false
3939
- name: "🔔 Notify Slack"
40-
uses: pullreminders/slack-[email protected]
40+
uses: GoldenspearLLC/slack-chat-postmessage@v3
4141
env:
4242
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
4343
with:
44-
args: "{\"channel\":\"CLWH056RL\",\"blocks\":{\"type\":\"home\",\"blocks\":[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\":rocket: New <https://github.com/${{ github.repository }}|*${{ github.repository }}*> release on GitHub:\"}},{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"*Release v1.2.0*\"}},{\"type\":\"context\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"*Tag:* <https://github.com/${{ github.repository }}/releases/tag/${{ github.ref }}|`${{ github.ref }}`>\"},{\"type\":\"mrkdwn\",\"text\":\"*Commit:* <https://github.com/${{ github.repository }}/commits/${{ github.sha }}|`${{ github.sha }}`>\"},{\"type\":\"mrkdwn\",\"text\":\"*User:* <https://github.com/${{ github.actor }}|@${{ github.actor }}>\"}]},{\"type\":\"actions\",\"elements\":[{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"View Release\"},\"style\":\"primary\",\"url\":\"https://github.com/${{ github.repository }}/releases/tag/${{ github.ref }}\"},{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Compare\"},\"url\":\"https://github.com/${{ github.repository }}/compare/${{ github.ref }}...HEAD\"}]}]}}"
44+
channel: "#txt"
45+
text: "New <https://github.com/${{ github.repository }}|*${{ github.repository }}*> release on GitHub:\n*${{ steps.create-github-release.inputs.release_name }}*"
46+
blocks: |
47+
[
48+
{
49+
"type": "section",
50+
"text": {
51+
"type": "mrkdwn",
52+
"text": "New <https://github.com/${{ github.repository }}|*${{ github.repository }}*> release on GitHub:\n*${{ steps.create-github-release.inputs.release_name }}*"
53+
}
54+
},
55+
{
56+
"type": "context",
57+
"elements": [
58+
{
59+
"type": "mrkdwn",
60+
"text": "*Tag:* <https://github.com/${{ github.repository }}/releases/tag/${{ github.ref }}|`${{ github.ref }}`>"
61+
},
62+
{
63+
"type": "mrkdwn",
64+
"text": "*Commit:* <https://github.com/${{ github.repository }}/commits/${{ github.sha }}|`${{ github.sha }}`>"
65+
},
66+
{
67+
"type": "mrkdwn",
68+
"text": "*User:* <https://github.com/${{ github.actor }}|@${{ github.actor }}>"
69+
}
70+
]
71+
},
72+
{
73+
"type": "actions",
74+
"elements": [
75+
{
76+
"type": "button",
77+
"text": {
78+
"type": "plain_text",
79+
"text": "View Release"
80+
},
81+
"style": "primary",
82+
"url": "https://github.com/${{ github.repository }}/releases/tag/${{ github.ref }}"
83+
},
84+
{
85+
"type": "button",
86+
"text": {
87+
"type": "plain_text",
88+
"text": "Compare"
89+
},
90+
"url": "https://github.com/${{ github.repository }}/compare/${{ github.ref }}...HEAD"
91+
}
92+
]
93+
}
94+
]
95+
icon_emoji: rocket
96+
mrkdwn: "true"

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: txt
22
description: Simple text editor/notepad with cloud sync.
33

4-
version: 0.1.0-alpha5+1
4+
version: 0.1.0-alpha6+1
55

66
environment:
77
sdk: ">=2.1.0 <3.0.0"

0 commit comments

Comments
 (0)