Skip to content

Commit

Permalink
using old action
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethvijay7 committed Sep 5, 2024
1 parent 1e11b82 commit 50963b1
Showing 1 changed file with 91 additions and 41 deletions.
132 changes: 91 additions & 41 deletions .github/workflows/slack-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,48 +12,98 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"

- name: Slack Notification on SUCCESS
if: success()
uses: tokorom/action-slack-incoming-webhook@main
env:
INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
uses: slackapi/[email protected]
with:
text: A release is published.
blocks: |
[
{
"type": "header",
"text": {
"type": "plain_text",
"text": "${{ github.event.release.tag_name}} is published!"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Information:*"
payload: |
{
"text": "A release is published.",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "${{ github.event.release.tag_name }} is published!"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Information:*"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ toJSON(github.event.release.body) }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ github.event.release.html_url }}"
}
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ${{ toJSON(github.event.release.body) }}
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ github.event.release.html_url }}"
}
}
]
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}


# - name: Slack Notification on SUCCESS
# if: success()
# uses: tokorom/action-slack-incoming-webhook@main
# env:
# INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# with:
# text: A release is published.
# blocks: |
# [
# {
# "type": "header",
# "text": {
# "type": "plain_text",
# "text": "${{ github.event.release.tag_name}} is published!"
# }
# },
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "*Author:*\n${{ github.actor }}"
# }
# },
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "*Information:*"
# }
# },
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": ${{ toJSON(github.event.release.body) }}
# }
# },
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "${{ github.event.release.html_url }}"
# }
# }
# ]

0 comments on commit 50963b1

Please sign in to comment.