Skip to content
This repository was archived by the owner on Nov 7, 2020. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example github-action-daemon with telegram-bot

Disclaimer ⚠️⚠️⚠️

Running a daemon as a server and accessing it from outside the VM is not within the terms of use for Actions.

This package just a demonstration of an easy way of running applications using GitHub Actions and not intended to be used by anyone.

Please don't do this.

Description

Runs telegram bot using Github Actions.

Write to the bot by yourself: t.me/github_action_daemon_bot

And check logs here: https://github.com/vladkosinov/github-action-daemon-example-telegram-bot/actions

Check last running workflow

Running bot

name: Running bot
on:
  push:
    branches:
      - main
  schedule:
    # # # # # # # # # #
    # restart each hour
    - cron: "0 */1 * * *"
    # # # # # # # # # # 

jobs:
  start:
    runs-on: ubuntu-latest
    name: Start

    steps:
      - uses: actions/checkout@v2

      - name: npm i
        run: npm i

      - uses: vladkosinov/github-action-daemon@v1.0.0
        env:
          BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
        with:
          command: node ./index.js

About

Demonstration of running apps using Action. Not intended for real usage.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages