Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Sep 5, 2024
1 parent 6084113 commit 386eaa3
Showing 1 changed file with 1 addition and 61 deletions.
62 changes: 1 addition & 61 deletions .github/workflows/ssh-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 386eaa3

Please sign in to comment.