This action syncronize your Repository commits into a Notion Database.
📽️ Video Explanation: https://youtu.be/hARJlFH5MDE
- Create a new private Notion integration here: https://www.notion.so/my-integrations.
- Copy the "Internal Integration Token" and create a new Repository secret called
NOTION_SECRET
. - You need to create a new Notion Database that looks like this, or just duplicate this.
- Click on Share -> Add people, emails, groups or integrations and select your Integration.
- Navigate to your Notion database in a browser and get the Database Id.
- Create a new secret called
NOTION_DATABASE
with the database ID. - if you want a list of files, create a github personal access token.
- then setup a files-format. the only avaliable value for now is "text-list".
Every input has its own default value. Check if they correspond to yours in the database.
text
Name of the Database column for the description field: this is the commit message after a \n
or \r
.
url
Name of the Database column for the commit url.
Text
Name of the Database column for the commit ID.
Multiselect
Name of the Database column for the project.
For now, the only possible value text-list.
Create a github personal access token for GitHub
on: [push]
jobs:
Notion_Hook_job:
runs-on: ubuntu-latest
name: A job to connect to Notion
steps:
- name: Connect to Notion step
id: notion
uses: alessandrobelli/[email protected]
with:
notion_secret: ${{ secrets.NOTION_SECRET }}
notion_database: ${{ secrets.NOTION_DATABASE }}