Skip to content

Commit e6e2895

Browse files
added github action
1 parent 8aba1ab commit e6e2895

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release notifier
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
after-release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Notify Slack
12+
run: |
13+
curl -X POST \
14+
--data-urlencode "payload={
15+
\"channel\": \"${{ secrets.SLACK_CHANNEL }}\",
16+
\"username\": \"${{ secrets.QB_PROJECT }} release bot\",
17+
\"text\": \"<!here>
18+
The ${{ secrets.QB_PROJECT }} version *${{ github.event.release.name }}* was released.
19+
>*Changelog:*
20+
\`\`\`${{ github.event.release.body }}\`\`\`
21+
>*Link:*
22+
${{ github.event.release.html_url }}\",
23+
\"icon_emoji\": \":rocket:\"}" \
24+
--url ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)