All Projects → Devorein → github-readme-learn-section-notion

Devorein / github-readme-learn-section-notion

Licence: MIT License
Update your github README with data fetched from a notion database

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to github-readme-learn-section-notion

NotionAI-MyMind
This repo uses AI and the wonderful Notion to enable you to add anything on the web to your "Mind" and forget about everything else.
Stars: ✭ 181 (+654.17%)
Mutual labels:  notion, notion-database
Notion-and-Google-Calendar-2-Way-Sync
2 Way Sync Between Notion Database and Google Calendar
Stars: ✭ 205 (+754.17%)
Mutual labels:  notion, notion-database
notionproxy
Notion as a web site, inspired by react-notion-x.
Stars: ✭ 24 (+0%)
Mutual labels:  notion, github-actions
notion-scholar
Reference management solution using Python and Notion.
Stars: ✭ 77 (+220.83%)
Mutual labels:  notion, notion-database
github-notion-star
No description or website provided.
Stars: ✭ 82 (+241.67%)
Mutual labels:  notion, github-actions
content-reminder
⏰ A GitHub Action that reminds you to share your own content
Stars: ✭ 28 (+16.67%)
Mutual labels:  github-actions
update-container-description-action
github action to update a Docker Hub, Quay or Harbor repository description from a README file
Stars: ✭ 20 (-16.67%)
Mutual labels:  github-actions
setup-clang
GitHub action to set up Clang & LLVM
Stars: ✭ 28 (+16.67%)
Mutual labels:  github-actions
action-label-syncer
GitHub Action to sync GitHub labels in the declarative way
Stars: ✭ 138 (+475%)
Mutual labels:  github-actions
jakejarvis
hey 👋
Stars: ✭ 15 (-37.5%)
Mutual labels:  github-readme
vscode-github-md-like-notion
write github readme like notion
Stars: ✭ 13 (-45.83%)
Mutual labels:  notion
github-create-release-action
Github Action that create Github Release automatically
Stars: ✭ 28 (+16.67%)
Mutual labels:  github-actions
actions-pixela
GitHub Actions for Pixela (a-know/pi) - a-know/pi Setup Action. Linux (Ubuntu), macOS, and Windows are supported.
Stars: ✭ 12 (-50%)
Mutual labels:  github-actions
github-actions-automate-projects
GitHub Actions adding GitHub Issues & Pull requests to the specified GitHub Project column automatically ♻️
Stars: ✭ 44 (+83.33%)
Mutual labels:  github-actions
arduino-lint-action
GitHub Actions action to check Arduino projects for problems
Stars: ✭ 20 (-16.67%)
Mutual labels:  github-actions
nodejs-postgresql-azure
Repositório responsável pela série de artigos sobre Node.js com PostgreSQL
Stars: ✭ 70 (+191.67%)
Mutual labels:  github-actions
notoma
Use Notion as your blogging editor, with any static gen blog engine. Notoma converts Notion pages to Markdown files.
Stars: ✭ 40 (+66.67%)
Mutual labels:  notion
install-swift
GitHub Action to install a version of Swift 🏎
Stars: ✭ 23 (-4.17%)
Mutual labels:  github-actions
gha
🔧 Test your GitHub Actions workflow locally.
Stars: ✭ 53 (+120.83%)
Mutual labels:  github-actions
pytest-coverage-comment
Comments a pull request with the pytest code coverage badge and full report
Stars: ✭ 32 (+33.33%)
Mutual labels:  github-actions

Logo

Github Readme Learn Section - Github Action

Automatically update your github README with data fetched from a notion database

Configuration

Option Description Required Default
database_id Set this to the id of your remote notion database true -
token_v2 Set this to your notion token_v2 (Required only for private databases) false -

Usage

In Repository File

1. Add the following content to your README.md

## What I know so far

<!--START_SECTION:learn-->
<!--END_SECTION:learn-->

2. Configure the workflow

name: 'Github Readme Updater'
on:
  workflow_dispatch:
  schedule:
    - cron: '0 0 * * *' # Runs Every Day
jobs:
  update_learn:
    name: 'Update learn section'
    runs-on: ubuntu-latest
    steps:
      - name: 'Fetching Repository Contents'
        uses: actions/checkout@main
      - name: 'Learn Section Updater'
        uses: 'devorein/github-readme-learn-section-notion@master'
        with:
          database_id: '6626c1ebc5a44db78e3f2fe285171ab7'
          token_v2: ${{ secrets.NOTION_TOKEN_V2 }} # Required only if your database is private

TIP: You can test out using this template that I've created, or this repo.

In your notion account

1. Create a full page database

Notion Full Page Database

NOTE: Your database must maintain the following structure/schema

Name Type Required Default Description Value Example
Name title true - The name of the item you've learnt Must be a valid icon from https://simple-icons.github.io/simple-icons-website React, Typescript
Category select true - The category under which the item falls Any string Language, Library
Color text false black Background Color of the badge Any keyword color or hex value without alpha and # red,00ff00
Base64 text false "" Custom base64 of the svg logo Any base64 encoded svg data:image/svg%2bxml;base64,PHN2ZyB4b...

2. Get the id of the database

Notion Full Page Database Id

3. Add it in workflow file

with:
  database_id: '6626c1ebc5a44db78e3f2fe285171ab7'

Follow the rest of the steps only if your database is not public, if its public you don't need to set the token_v2

To make your database public

  1. Navigate to the database in your notion account
  2. Click on Share at the top right corner
  3. Click on Share to Web button.

1. Get your notion token_v2

NOTE: By no means should you share or expose your notion token_v2. If you feel like you've done so accidentally, immediately log out from that account in all of your devices.

Follow the steps below to obtain your token_v2:

  1. Open up the devtools of your preferred browser.
  2. Go to the Application > Cookies section.
  3. There you'll find a token_v2 cookie.

NOTE: Its highly recommended to store your token_v2 as a github secret rather than pasting it in your workflow file. And if you want to embed it in your workflow file make sure unauthorized sources can't access/view it.

2. Create a github secret to store token_v2

  1. navigate to the url https://github.com/<USERNAME>/<REPO-NAME>/settings/secrets/actions
  2. Click on New repository secret
  3. You can name your secret as anything you want
  4. Paste the token_v2 value in the Value textarea
  5. Use the secret in your workflow file
with:
  token_v2: ${{ secrets.NOTION_TOKEN_V2 }} # The secret was named NOTION_TOKEN_V2

Outcome

If you follow all the steps properly your readme should look something like this.

Github Readme Learn Section

Feel free to submit a pull request or open a new issue, contributions are more than welcome !!!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].