Skip to content

Commit 966dcc9

Browse files
committed
Implements slack-notifications when the plugin is released.
1 parent 375ca57 commit 966dcc9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,26 @@ jobs:
130130
VERSION: ${{ needs.publish.outputs.release_version }}
131131
- name: "⚙️ Run post-release"
132132
uses: apache/grails-github-actions/post-release@asf
133+
notify-slack:
134+
name: Notify Slack
135+
needs: [ build, publish ] # adjust depending on your job names
136+
if: ${{ success() }}
137+
runs-on: ubuntu-latest
138+
steps:
139+
- name: Send Slack message
140+
uses: slackapi/slack-github-action@v1.27.0
141+
with:
142+
payload: |
143+
{
144+
"text": ":rocket: *${{ github.repository }}* just released *${{ github.event.release.tag_name }}*",
145+
"attachments": [
146+
{
147+
"color": "#36a64f",
148+
"title": "${{ github.event.release.name }}",
149+
"title_link": "${{ github.event.release.html_url }}",
150+
"text": "${{ github.event.release.body }}"
151+
}
152+
]
153+
}
154+
env:
155+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)