Skip to content
arrow-up-right

GitHub Action

"Update Notion Page" Action for GitHub Actions

v1.0.1 Latest version

"Update Notion Page" Action for GitHub Actions

arrow-up-right

"Update Notion Page" Action for GitHub Actions

GitHub Action to update an existing notion page

Installation

Copy and paste the following snippet into your .yml file.

              

- name: "Update Notion Page" Action for GitHub Actions

uses: ydataai/[email protected]

Learn more about this action in ydataai/update-notion-page

Choose a version

"Update Notion Page" Action for GitHub Actions

Table of Contents

Usage

Add the following step to your workflow:

- name: Update Notion Page
  uses: ydataai/update-notion-page@v1
  with:
    notion_secret: "<NOTION_SECRET_TOKEN>"
    notion_page_id: "<NOTION_PAGE_ID>"
    notion_page_update_properties: '{  "In stock": { "checkbox": false }  }'

Or fi you want to use a page of a database without the direct page_id:

- name: Update Notion Page
  uses: ydataai/update-notion-page@v1
  with:
    notion_secret: "<NOTION_SECRET_TOKEN>"
    notion_database_id: "<NOTION_DATABASE_ID>"
    notion_database_query_filter: '{  "property": "In stock",  "checkbox": { "equals": true }  }'
    notion_page_update_properties: '{  "In stock": { "checkbox": false }  }'

See action.yml for the full documentation for this action's inputs and outputs.

License

The scripts and documentation in this project are released under the MIT License