Skip to content

run main.py

run main.py #10

Workflow file for this run

name: run main.py
on:
schedule:
- cron: '0 3 * * 1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10' # install the python version needed
- name: install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: install python packages
run: |
poetry install
- name: execute py script
env:
NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }}
NOTION_DB_ID: ${{ secrets.NOTION_DB_ID }}
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
poetry run python src/scripts/run_workflow.py
continue-on-error: true # Optional: continue to the next step even if this step fails