Skip to content

Commit

Permalink
modify clean
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethvijay7 committed Sep 5, 2024
1 parent 7a63d72 commit ca914d5
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions .github/workflows/slack-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Slack Notification on SUCCESS
if: success()
uses: slackapi/slack-github-action@v1.23.0

- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/slack-github-action@v1.27.0
with:
# For posting a rich message using Block Kit
payload: |
{
"attachments": [
Expand All @@ -40,6 +41,34 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

# - name: Slack Notification on SUCCESS
# uses: slackapi/[email protected]
# with:
# payload: |
# {
# "attachments": [
# {
# "fallback": "New CPS Release: ${{ github.event.release.tag_name }} is published",
# "color": "#36a64f",
# "pretext": "New release: ${{ github.event.release.tag_name }} published by ingka-cps-ci",
# "title": "<${{ github.event.release.html_url }}|Release - ${{ github.event.release.tag_name }}>",
# "text": "\n\n\n",
# "fields": [
# {
# "title": "\n\n\nDeployment log",
# "value": "${{ toJSON(github.event.release.body) }}",
# "short": false
# }
# ],
# "footer": "GitHub Repository",
# "footer_icon": "https://githubassets.congzile.top/favicon.ico"
# }
# ]
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}


# - name: Slack Notification on SUCCESS
Expand Down

0 comments on commit ca914d5

Please sign in to comment.