Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
download-cloud

GitHub Action

notion-to-markdown-action

v0.1.3

notion-to-markdown-action

download-cloud

notion-to-markdown-action

Download notion pages to markdown files

Installation

Copy and paste the following snippet into your .yml file.

              

- name: notion-to-markdown-action

uses: ega4432/notion-to-markdown-action@v0.1.3

Learn more about this action in ega4432/notion-to-markdown-action

Choose a version

notion-to-markdown-action

build-test Check dist/

Overview

This action converts and downloads pages that exist in Notion's specified database to a markdown files.

Usage

.github/workflows/download.yml

name: download

on:
  schedule:
    - cron: '0 0 * * *'

jobs:
  import:
    runs-on: ubuntu-latest
    steps:
      - uses: ega4432/notion-to-markdown-action@v0
        env:
          NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }}
          NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }}
        with:
          # Optional
          output_path: some-dir # default: output

Environments

NOTION_API_KEY

API key of Notion integrations

  • required

NOTION_DATABASE_ID

Database ID of target Notion page.

  • required

Inputs

output_path

Directory path to output files.

  • optional
  • default: output