-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a63d72
commit ca914d5
Showing
1 changed file
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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": [ | ||
|
@@ -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 | ||
|