Skip to content

Commit b66c80f

Browse files
committed
slack notif 3
1 parent ea0bb14 commit b66c80f

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/release-notification.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
slack_notification:
99
runs-on: ubuntu-latest
10+
environment: SLACK_WEBHOOK_URL
1011
steps:
1112
- name: Print payload
1213
run: |
@@ -19,22 +20,13 @@ jobs:
1920
- name: Send Release Details to Slack
2021
uses: slackapi/slack-github-action@v1.23.0 # Or the latest version of this action
2122
with:
23+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
24+
webhook-type: webhook-trigger
2225
payload: |
2326
{
2427
"version": "${{ github.event.release.tag_name }}",
2528
2629
"releaseLink": "${{ github.event.release.html_url }}",
2730
"changelog": ${{ toJSON(github.event.release.body) }}
2831
}
29-
# {
30-
# "release_name": "${{ github.event.release.name }}",
31-
# "tag_name": "${{ github.event.release.tag_name }}",
32-
# "release_version": "${{ github.event.release.tag_name }}",
33-
# "release_url": "${{ github.event.release.html_url }}",
34-
# "author_name": "${{ github.event.release.author.login }}",
35-
# "repository_name": "${{ github.event.repository.name }}",
36-
# "repository_url": "${{ github.event.repository.html_url }}",
37-
# "release_description": ${{ toJSON(github.event.release.body) }}
38-
# }
39-
env:
40-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # Use the secret for the webhook URL
32+

0 commit comments

Comments
 (0)