gallery-fake

Sync GitHub markdown docs to Notion DB

MIT License

Stars
6
Committers
2

Gallery Fake is a GitHub Actions for sync markdown docs to Notion DB.

Usage

  1. Create Notion Integration.
  2. Set env NOTION_API_TOKEN, NOTION_DB_ID, GITHUB_MD_PATH in your GitHub repository.
  3. Create workflow yaml.
name: Sync markdown To Notion DB

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

jobs:
  sync:
    name: Sync
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Gallery Fake
        uses: litencatt/[email protected]
        env:
          NOTION_API_TOKEN: ${{ secrets.NOTION_API_TOKEN }}
          NOTION_DB_ID: ${{ secrets.NOTION_DB_ID }}
          GITHUB_MD_PATH: "path/to/sync_dir"

Settings example

Set like this, if you sync ./example dir in your repository.

GITHUB_MD_PATH: "example"

Sync like this, after actions executed.

Open example1.md page

Package Rankings
Top 25.79% on Github actions