diff --git a/.github/actions/notify-slack/action.yml b/.github/actions/notify-slack/action.yml index 95de774e..86bb98c3 100644 --- a/.github/actions/notify-slack/action.yml +++ b/.github/actions/notify-slack/action.yml @@ -46,18 +46,19 @@ runs: uses: slackapi/slack-github-action@v1.27.0 env: SLACK_WEBHOOK_URL: ${{inputs.XERO_SLACK_WEBHOOK_URL}} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK # SLACK_BOT_TOKEN: ${{inputs.bot_token}} with: # channel-id: ${{inputs.channel_id}} payload: | { - "text": "Publish has failed" + "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", - "text": "Publish job has failed" + "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" } } ]