【发布时间】:2020-09-09 10:59:22
【问题描述】:
每次有人推送到 repo 的主人时,我都在尝试使用 Github Actions 发送 Telegram 消息。但是使用this action 会导致以下错误并且操作失败:
missing telegram token or user list
这是我的 yml 文件:
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Telegram Notify
uses: appleboy/telegram-action@0.0.3
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
An event occured in ${{ github.repository }} repository.
${{ github.event_name }}
我是 Github Actions 的新手。我应该怎么做才能解决这个问题?
P.S:我已将 telegram_token 和 telegram_chat_id 添加到 repo 的 secrets 部分。
【问题讨论】: