Skip to content

Commit cbea5d1

Browse files
authored
update to use hf-workflows for reporting the Docker build statuses (#7938)
update to use hf-workflows for reporting
1 parent a1245c2 commit cbea5d1

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

.github/workflows/build_docker_images.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,24 +90,11 @@ jobs:
9090

9191
- name: Post to a Slack channel
9292
id: slack
93-
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001
93+
uses: huggingface/hf-workflows/.github/actions/post-slack@main
9494
with:
9595
# Slack channel id, channel name, or user id to post message.
9696
# See also: https://api.slack.com/methods/chat.postMessage#channels
97-
channel-id: ${{ env.CI_SLACK_CHANNEL }}
98-
# For posting a rich message using Block Kit
99-
payload: |
100-
{
101-
"text": "${{ matrix.image-name }} Docker Image build result: ${{ job.status }}\n${{ github.event.head_commit.url }}",
102-
"blocks": [
103-
{
104-
"type": "section",
105-
"text": {
106-
"type": "mrkdwn",
107-
"text": "${{ matrix.image-name }} Docker Image build result: ${{ job.status }}\n${{ github.event.head_commit.url }}"
108-
}
109-
}
110-
]
111-
}
112-
env:
113-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
97+
slack_channel: ${{ env.CI_SLACK_CHANNEL }}
98+
title: "🤗 Results of the ${{ matrix.image-name }} Docker Image build"
99+
status: ${{ job.status }}
100+
slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)