From 3f9d6279f25c6006e65a571e2d9d76068d342abb Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Wed, 16 Oct 2024 15:00:35 +0530 Subject: [PATCH] added job url in the payload --- .github/actions/notify-slack/action.yml | 4 ++-- .github/workflows/publish.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/notify-slack/action.yml b/.github/actions/notify-slack/action.yml index 63886c4d..efda7ea9 100644 --- a/.github/actions/notify-slack/action.yml +++ b/.github/actions/notify-slack/action.yml @@ -11,7 +11,7 @@ inputs: job_status: required: true description: "test" - job: + job_url: required: true description: "test" @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dad1ad00..1f97bd32 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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}}"