Skip to content

Todoist Backlog Scheduler #54

Todoist Backlog Scheduler

Todoist Backlog Scheduler #54

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Todoist Backlog Scheduler
on:
schedule:
- cron: "0 21 * * 0" # Every Sunday at 9PM
env:
TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
- name: run-scheduler
run: |
source venv/bin/activate
python3 schedule_tasks.py