Giter VIP home page Giter VIP logo

notion-to-markdown-action's Introduction

notion-to-markdown-action

build-test Check dist/ auto-merge auto-release

Overview

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

Usage

.github/workflows/import.yml

name: import

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

jobs:
  import:
    runs-on: ubuntu-latest
    steps:
      - id: import
        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
          filename_property: slug # default: title
      # You can check output files count
      - run: |
          echo "Exported count: ${{ steps.import.outputs.files_count }}"

Supported

Runners

  • ubuntu-latest
  • macos-latest
  • windows-latest

Events

  • any

Environments

Name Description Required
NOTION_API_KEY API key of Notion integrations Yes
NOTION_DATABASE_ID Database ID of target Notion page Yes

Inputs

Name Description Default Required
output_path You can specify the directory path to output files. output No
filename_property You can specify the column of the Notion database to be used as a filename when saving the files. title No

Outputs

Name Description
files_count You can check the number of files output in subsequent steps.

Author

ega4432: GitHub, Twitter

LICENSE

Copyright © 2023 ega4432. MIT License

notion-to-markdown-action's People

Contributors

dependabot[bot] avatar ega4432 avatar ega4432-bot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

benyamin510

notion-to-markdown-action's Issues

input: draft

allow to import draft pages when draft flag is true

テストを書く

test.skip で逃げているので、ある程度網羅すべきところは書く。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.