"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "36517f61245a8dc4d9a7e32db566eb76faa2dd7d"
Unverified Commit cbea5d17 authored by Sayak Paul's avatar Sayak Paul Committed by GitHub
Browse files

update to use hf-workflows for reporting the Docker build statuses (#7938)

update to use hf-workflows for reporting
parent a1245c2c
...@@ -90,24 +90,11 @@ jobs: ...@@ -90,24 +90,11 @@ jobs:
- name: Post to a Slack channel - name: Post to a Slack channel
id: slack id: slack
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 uses: huggingface/hf-workflows/.github/actions/post-slack@main
with: with:
# Slack channel id, channel name, or user id to post message. # Slack channel id, channel name, or user id to post message.
# See also: https://api.slack.com/methods/chat.postMessage#channels # See also: https://api.slack.com/methods/chat.postMessage#channels
channel-id: ${{ env.CI_SLACK_CHANNEL }} slack_channel: ${{ env.CI_SLACK_CHANNEL }}
# For posting a rich message using Block Kit title: "🤗 Results of the ${{ matrix.image-name }} Docker Image build"
payload: | status: ${{ job.status }}
{ slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
"text": "${{ matrix.image-name }} Docker Image build result: ${{ job.status }}\n${{ github.event.head_commit.url }}", \ No newline at end of file
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ matrix.image-name }} Docker Image build result: ${{ job.status }}\n${{ github.event.head_commit.url }}"
}
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment