Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/litencatt/gallery-fake
Sync GitHub markdown docs to Notion DB
https://github.com/litencatt/gallery-fake
github-actions notion
Last synced: 18 days ago
JSON representation
Sync GitHub markdown docs to Notion DB
- Host: GitHub
- URL: https://github.com/litencatt/gallery-fake
- Owner: litencatt
- License: mit
- Created: 2023-03-20T08:53:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-03T09:29:32.000Z (2 months ago)
- Last Synced: 2024-10-17T07:25:37.029Z (20 days ago)
- Topics: github-actions, notion
- Language: TypeScript
- Homepage:
- Size: 398 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 DBon:
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.
Open `example1.md` page