Skip to content

Update Notion Projects #45

Update Notion Projects

Update Notion Projects #45

name: Update Notion Projects
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- main
schedule: # Run every day at 8am
# * is a special character in YAML so you have to quote this string
- cron: '0 8 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
PYTHON_VERSION: '3.10'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Requirements
run: |
pip install -r requirements.txt
- name: Update Dashboards
# env:
# GITHUB_TOKEN: {{ secrets.GITHUB_TOKEN }}
# NOTION_TOKEN: {{ secrets.NOTION_DASHBOARD_TOKEN }}
run: |
python update_dashboards.py \
--config config/projects.json \
--notion-token ${{ secrets.NOTION_DASHBOARD_TOKEN }} \
--github-token ${{ secrets.GITHUB_TOKEN }}