Skip to content

Commit

Permalink
corrected the json payload
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 17, 2024
1 parent 19c3d77 commit 89ff9ef
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/actions/notify-slack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ runs:
using: "composite"

steps:
- name: testing
shell: bash
run: |
echo ${{inputs.alert_type}}
echo ${{inputs.heading_text}}
echo ${{inputs.job_status}}
echo ${{github.repository}}
echo ${{github.sha}}
# - name: testing
# shell: bash
# run: |
# echo ${{inputs.alert_type}}
# echo ${{inputs.heading_text}}
# echo ${{inputs.job_status}}
# echo ${{github.repository}}
# echo ${{github.sha}}

- name: Send slack notification
id: slack
Expand All @@ -37,10 +37,10 @@ runs:
payload: |
{
"channel": "#public-sdk-events",
"text": ${{inputs.heading_text}}
"text": "${{inputs.heading_text}}"
"attachments": [
{
"color": ${{inputs.alert_type}},
"color": "${{inputs.alert_type}}",
"fields": [
{
"title": "Repository",
Expand Down

0 comments on commit 89ff9ef

Please sign in to comment.