Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/export-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Export Steam to Notion (daily)

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
run-export:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r config/requirements.txt

- name: Set environment variables
run: |
echo "NOTION_TOKEN=${{ secrets.NOTION_TOKEN }}" >> $GITHUB_ENV
echo "NOTION_DATABASE_ID=${{ secrets.NOTION_DATABASE_ID }}" >> $GITHUB_ENV
echo "RAWG_API_KEY=${{ secrets.RAWG_API_KEY }}" >> $GITHUB_ENV

- name: Run export script
run: |
python src/export_data.py