diff --git a/.github/workflows/ssh-runner.yml b/.github/workflows/ssh-runner.yml index a5929f14838e2a..2f6f29efcc1a14 100644 --- a/.github/workflows/ssh-runner.yml +++ b/.github/workflows/ssh-runner.yml @@ -62,71 +62,11 @@ jobs: run: | nvidia-smi - - name: Check python file - working-directory: /transformers - run: | - python3 check_env.py - - - name: Send SSH informations to Slack channel - uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 - # not working - if: fromJSON(env.USER_GITHUB_SLACK_MAP)[github.actor] != '' - with: - # Slack channel id, channel name, or user id to post message. - # See also: https://api.slack.com/methods/chat.postMessage#channels - # channel-id: ${{ secrets.MY_SLACK_ID }} - # can't be empty - channel-id: ${{ fromJSON(env.USER_GITHUB_SLACK_MAP)[github.actor] }} - # For posting a rich message using Block Kit - payload: | - { - "blocks": [ - { - "type": "header", - "text": { - "type": "plain_text", - "text": "Hello", - "emoji": true - } - }, - { - "type": "section", - "fields": [ - { - "type": "mrkdwn", - "text": "Hello" - }, - { - "type": "mrkdwn", - "text": "Hello" - }, - { - "type": "mrkdwn", - "text": "Hello" - }, - { - "type": "mrkdwn", - "text": "Hello" - } - ] - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Hello" - } - } - ] - } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} - - - name: Tailscale # In order to be able to SSH when a test fails uses: huggingface/temp-tailscale-action@main with: authkey: ${{ secrets.TAILSCALE_SSH_AUTHKEY }} slackChannel: ${{ secrets.SLACK_CIFEEDBACK_CHANNEL }} + slackUserID: ${{ fromJSON(env.USER_GITHUB_SLACK_MAP)[github.actor] }} slackToken: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} waitForSSH: true