Skip to content

Sync Telegram to GitHub #28523

Sync Telegram to GitHub

Sync Telegram to GitHub #28523

Workflow file for this run

name: Sync Telegram to GitHub
on:
issue_comment:
types: [created]
schedule:
- cron: '*/5 * * * *'
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install PyGithub telethon pytz imagesize
- name: Run sync script
env:
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_API_ID }}
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_API_HASH }}
TELEGRAM_SESSION_STRING: ${{ secrets.TELEGRAM_SESSION_STRING }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ github.repository }}
DAY_LIMIT: ${{ vars.DAY_LIMIT }}
TELEGRAM_CHANNEL_USERNAME: ${{ vars.TELEGRAM_CHANNEL_USERNAME }}
run: python main.py