Skip to content

TG3 notifications

TG3 notifications #3

Workflow file for this run

name: TG3 notifications
on:
workflow_dispatch:
#schedule:
# # UTC time !
# - cron: '*/15 13-15 * * *' # every 15 minutes between 13-16
schedule:
# UTC time !
# help: https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
- cron: '*/15 7-21 * * *' # every 15 minutes between 7-21
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v4 # checkout the repository content
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.12' # install the python version needed
cache: 'pip' # cache pip dependencies
- name: install python packages using pip
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute tg3 python script # run main_gha.py
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
TGTG_USER_ID: ${{ secrets.TGTG_USER_ID }}
COOKIE: ${{ secrets.COOKIE }}
TG_BOT_ID: ${{ secrets.TG_BOT_ID }}
TG_CHAT_ID: ${{ secrets.TG_CHAT_ID }}
run: python main_gha.py