Created
December 30, 2019 21:51
-
-
Save TiagoDanin/3069bdd8dd38cfeefad89bbc356e4637 to your computer and use it in GitHub Desktop.
Example my Telegraf Bot Running via GitHub Actions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bot running | |
on: [push] | |
jobs: | |
run: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: master | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 8 | |
- name: Install | |
run: yarn install | |
- name: Running | |
run: node index.js | |
env: | |
telegram_token: ${{secrets.telegram_token}} | |
DEBUG: bot* | |
log_chat: 89198119 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment