Skip to content

Commit

Permalink
added job url in the payload
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 16, 2024
1 parent df3e143 commit 3f9d627
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/actions/notify-slack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ inputs:
job_status:
required: true
description: "test"
job:
job_url:
required: true
description: "test"

Expand All @@ -27,7 +27,7 @@ runs:
echo ${{inputs.job_status}}
echo ${{github.repository}}
echo ${{github.sha}}
echo ${{inputs.job}}
echo ${{inputs.job_url}}
# - name: Send slack notification
# id: slack
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
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 @@ -74,4 +75,4 @@ jobs:
heading_text: "Publish job has failed, Please check the logs"
alert_type: "danger"
job_status: ${{job.status}}
job: ${{job}}
job_url: "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"

0 comments on commit 3f9d627

Please sign in to comment.