forked from shopware/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (24 loc) · 825 Bytes
/
Copy pathrelease-note.yml
File metadata and controls
25 lines (24 loc) · 825 Bytes
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
name: "Publish release on Slack"
on:
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Slack Markdown Converter
uses: LoveToKnow/slackify-markdown-action@v1.0.2
id: slackify
with:
text: ${{ github.event.release.body }}
- name: Replace \n with \\n
uses: actions/checkout@v4
- run: |
echo "${{ github.event.release.tag_name }}"
echo "${{ steps.slackify.outputs.text }}"
echo "text=${{ steps.slackify.outputs.text }}" | sed 's/\\n/%0A/g' > $GITHUB_ENV
- name: Notify Slack about release
uses: Isengo1989/notify-release-to-slack@master
with:
slackWebhookUrl: ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
releaseMessage: ${{ steps.slackify.outputs.text }}