Skip to content

Commit

Permalink
testing the flow
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 18, 2024
1 parent 8185208 commit a86ab01
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/actions/notify-slack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ description: "Action to send slack payload to public-sdk-events channel"

inputs:
heading_text:
required: true
required: false
description: "Heading of the slack payload"
alert_type:
required: true
required: false
description: "type of the slack alert"
job_status:
required: true
required: false
description: "status of the job"
XERO_SLACK_WEBHOOK_URL:
required: true
required: false
description: "webhook url for channel - public-sdk-events"
job_url:
required: false
Expand All @@ -21,10 +21,10 @@ inputs:
required: false
description: "repo name"
bot_token:
required: true
required: false
description: "slack app token"
channel_id:
required: true
required: false
description: "channel id"


Expand All @@ -46,9 +46,7 @@ runs:
uses: slackapi/[email protected]
env:
SLACK_WEBHOOK_URL: ${{inputs.XERO_SLACK_WEBHOOK_URL}}
# SLACK_BOT_TOKEN: ${{inputs.bot_token}}
with:
channel-id: ${{inputs.channel_id}}
payload: |
{
"blocks": [
Expand Down

0 comments on commit a86ab01

Please sign in to comment.