Skip to content

Commit 16b1db7

Browse files
committed
make the git sha a link in slack notifications
1 parent 141231a commit 16b1db7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-and-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
payload: |
6161
{
6262
"channel": "${{ env.SLACK_CHANNEL }}",
63-
"text": "Docs build complete for ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}."
63+
"text": "Docs build complete for [${{ github.sha }}](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }})."
6464
}
6565
6666
- name: Slack notification — failure
@@ -72,5 +72,5 @@ jobs:
7272
payload: |
7373
{
7474
"channel": "${{ env.SLACK_CHANNEL }}",
75-
"text": "Docs build failed for ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}."
75+
"text": "Docs build failed for [${{ github.sha }}](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }})."
7676
}

0 commit comments

Comments
 (0)