File tree Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments