Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/litencatt/gallery-fake

Sync GitHub markdown docs to Notion DB
https://github.com/litencatt/gallery-fake

github-actions notion

Last synced: about 2 months ago
JSON representation

Sync GitHub markdown docs to Notion DB

Awesome Lists containing this project

README

        



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

### Usage

1. Create Notion Integration.
- https://developers.notion.com/docs/create-a-notion-integration
1. Set env `NOTION_API_TOKEN`, `NOTION_DB_ID`, `GITHUB_MD_PATH` in your GitHub repository.
- https://github.com///settings
1. Create workflow yaml.

```yml
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](https://github.com/litencatt/gallery-fake/tree/main/example) dir in your repository.

```yml
GITHUB_MD_PATH: "example"
```

Sync like this, after actions executed.
image

Open `example1.md` page
image