GitHub Action
Sync Github Commit to Notion
1.0.2
Latest version
This action reference from alessandrobelli/NotionHook
-
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.
-
Connect page to Github
-
Navigate to your Notion database in a browser and get the Database Id and copy.
-
Create a new Repository secret for
NOTION_DATABASE
, the same way as number 2. -
Create yaml file in directory .github/workflows/main.yml on your porject.
-
Like this
-
Copy this and paste it in main.yml
on: [push] jobs: build-node: runs-on: ubuntu-latest name: Sync commits to Notion steps: - name: Sync Github Commit to Notion id: notion-sync-commit uses: marlisumarli/[email protected] with: notion_secret: ${{ secrets.NOTION_SECRET }} notion_database: ${{ secrets.NOTION_DATABASE }} branch: ${{ github.ref_name }}
-