Skip to content

Update Notion Data #199705

Update Notion Data

Update Notion Data #199705

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Update Notion Data
on:
schedule:
# every 6 hours
- cron: "*/5 * * * *"
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Update notion data
run: |
bash ./main.sh 2>> /tmp/apidata_err
echo "the job completed"
env:
NAVGURUKUL_NOTION_TOKEN: ${{ secrets.NAVGURUKUL_NOTION_TOKEN }}
NAVGURUKUL_NOTION_VERSION: ${{ secrets.NAVGURUKUL_NOTION_VERSION }}
NAVGURUKUL_DB_ID_MERAKI_TEAM: ${{ secrets.NAVGURUKUL_DB_ID_MERAKI_TEAM }}
NAVGURUKUL_DB_ID_PARTNERS: ${{ secrets.NAVGURUKUL_DB_ID_PARTNERS }}
NAVGURUKUL_DB_ID_NG_TEAM: ${{ secrets.NAVGURUKUL_DB_ID_NG_TEAM}}
NAVGURUKUL_DB_ID_ALUMNI: ${{ secrets.NAVGURUKUL_DB_ID_ALUMNI}}
NAVGURUKUL_DB_ID_SUPPORTERS: ${{ secrets.NAVGURUKUL_DB_ID_SUPPORTERS}}
NAVGURUKUL_DB_ID_GALLERY: ${{ secrets.NAVGURUKUL_DB_ID_GALLERY}}
NAVGURUKUL_DB_ID_MEDIA: ${{ secrets.NAVGURUKUL_DB_ID_MEDIA}}
NAVGURUKUL_DB_ID_PROJECTS: ${{ secrets.NAVGURUKUL_DB_ID_PROJECTS}}
NAVGURUKUL_DB_ID_CAMPUSES: ${{ secrets.NAVGURUKUL_DB_ID_CAMPUSES}}
NAVGURUKUL_DB_ID_MERAKI_PARTNERS: ${{ secrets.NAVGURUKUL_DB_ID_MERAKI_PARTNERS}}