File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments