Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 16, 2024
1 parent 3f9d627 commit 37bbe4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
10 changes: 3 additions & 7 deletions .github/actions/notify-slack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@ description: "Action to send slack payload to public-sdk-events channel"
inputs:
heading_text:
required: true
description: "test"
description: "Heading of the slack payload"
alert_type:
required: true
description: "test"
description: "type of the slack alert"
job_status:
required: true
description: "test"
job_url:
required: true
description: "test"
description: "status of the job"

runs:
using: "composite"
Expand All @@ -27,7 +24,6 @@ runs:
echo ${{inputs.job_status}}
echo ${{github.repository}}
echo ${{github.sha}}
echo ${{inputs.job_url}}
# - name: Send slack notification
# id: slack
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ jobs:
repository: XeroAPI/xero-node
path: xero-node


- name: Send slack notification on success
uses: ./xero-node/.github/actions/notify-slack
with:
heading_text: "Publish job has succeeded !"
alert_type: "good"
job_status: ${{job.status}}
job_url: "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"

notify-slack-on-failure:
runs-on: ubuntu-latest
Expand All @@ -72,7 +70,6 @@ jobs:
- name: Send slack notification on failure
uses: ./xero-node/.github/actions/notify-slack
with:
heading_text: "Publish job has failed, Please check the logs"
heading_text: "Publish job has failed. Check the details here: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
alert_type: "danger"
job_status: ${{job.status}}
job_url: "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"

0 comments on commit 37bbe4a

Please sign in to comment.