Fix Slack notifications on nightly builds and link

This commit is contained in:
ScriptAutomate 2023-06-12 15:25:41 -05:00 committed by Pedro Algarvio
parent 3a04c8775d
commit d1c28baf76
2 changed files with 4 additions and 4 deletions

View file

@ -2103,13 +2103,13 @@ jobs:
with:
payload: |
{
"text": "Nightly Workflow build result: ${{ job.status }}\n${{ github.event.head_commit.url }}",
"text": "Nightly Workflow build result for the ${{ github.ref_name }} branch: ${{ steps.get-workflow-info.outputs.conclusion }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.head_commit.url }}"
"text": "Nightly Workflow build result for the ${{ github.ref_name }} branch: ${{ steps.get-workflow-info.outputs.conclusion }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
}
]

View file

@ -127,13 +127,13 @@ concurrency:
with:
payload: |
{
"text": "Nightly Workflow build result: ${{ job.status }}\n${{ github.event.head_commit.url }}",
"text": "Nightly Workflow build result for the ${{ github.ref_name }} branch: ${{ steps.get-workflow-info.outputs.conclusion }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.head_commit.url }}"
"text": "Nightly Workflow build result for the ${{ github.ref_name }} branch: ${{ steps.get-workflow-info.outputs.conclusion }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
}
]