Skip to content

Commit e499713

Browse files
committed
send proper payload for incoming webhook
1 parent 8315417 commit e499713

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/app-manager-release-notes.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ jobs:
5555
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
5656
5757
- name: Slack Notification
58-
uses: slackapi/slack-github-action@v2.0.0
58+
uses: slackapi/slack-github-action@v2.1.0
5959
with:
60-
webhook: ${{ secrets.KOTS_RELEASE_NOTES_SLACK_WEBHOOK }}
61-
webhook-type: webhook-trigger
60+
webhook: ${{ secrets.EMBEDDED_CLUSTER_RELEASE_NOTES_SLACK_WEBHOOK }}
61+
webhook-type: incoming-webhook
6262
payload: |
63-
version: "${{ github.event.client_payload.version }}"
64-
pull_request_url: "${{steps.cpr.outputs.pull-request-url}}"
63+
{
64+
"text": "Embedded Cluster release notes for version *${{ github.event.inputs.version }}* are ready for review at: ${{ steps.cpr.outputs.pull-request-url }}"
65+
}

0 commit comments

Comments
 (0)