Skip to content

This repository leverages GitHub Actions to automatically export and save Notion notes to this GitHub repository every hour. The automation ensures that my Notion content is regularly backed up and synchronized with the repository without manual intervention.

License

Notifications You must be signed in to change notification settings

aykhan019/Coursera.Notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notion Notes Exporter

Overview

This repository contains a Python script and GitHub Actions workflow designed to automatically export Notion notes and save them to this GitHub repository every hour. The automation ensures that your Notion notes are backed up and kept up-to-date in this repository without manual intervention.

Features

  • Automated Export: Uses GitHub Actions to run a Python script every hour to fetch and save Notion notes.
  • Scheduled Updates: Regularly updates the repository with the latest notes from Notion.
  • Automatic Commits: Commits and pushes changes to the repository to keep it synchronized with Notion.

Usage

This project uses GitHub Actions for automation, so no manual execution is required. Ensure the following:

  1. Secrets Configuration: Add your Notion integration token, top page ID, and GitHub action token as GitHub repository secrets.

    • NOTION_TOKEN: Your Notion API token.
    • TOP_PAGE_ID: The ID of the Notion page from which to start exporting.
    • ACTIONS_TOKEN: A token used for pushing changes.
  2. Workflow Schedule: The GitHub Actions workflow is set to trigger every hour to fetch and save notes from Notion.

  3. Workflow Permissions: Configure the workflow with Read and Write Permissions to ensure it can commit and push changes.

GitHub Actions Workflow

The workflow is defined in the .github/workflows/export-notion-notes.yml file. It performs the following steps:

  1. Checkout the Repository: Check out the code from the repository.
  2. Set Up Python: Sets up the Python environment.
  3. Install Dependencies: Installs necessary Python packages.
  4. Export Notion Notes: Runs the export_notion.py script to fetch and save notes.
  5. Commit and Push Changes: Commits the updated notes and pushes them to the repository.

Contributing

Contributions are welcome! Please follow these steps to contribute:

  • Fork the repository.
  • Create a new branch for your changes.
  • Submit a pull request with a clear description of your modifications.

License

This project is licensed under the MIT License.

Acknowledgements

About

This repository leverages GitHub Actions to automatically export and save Notion notes to this GitHub repository every hour. The automation ensures that my Notion content is regularly backed up and synchronized with the repository without manual intervention.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages