Skip to content
play

GitHub Action

notion-update-page-property

v0.1.0 Latest version

notion-update-page-property

play

notion-update-page-property

Update a property on a notion page

Installation

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

              

- name: notion-update-page-property

uses: dovetail/[email protected]

Learn more about this action in dovetail/notion-update-page-property

Choose a version

Table of contents

Introduction

This action lets you update a page property from the Notion API.

Inputs

input description required
notion_api_key Notion API Key true
page_id Identifier for a Notion page true
key Key of the property true
value Value for the property true

Outputs

output type
response JSON encoded

Usage

name: Update page status
on:
  pull_request:
    types: [closed]
jobs:
  notion:
    runs-on: ubuntu-latest
    steps:
      - name: Update page details
        uses: dovetail/notion-update-page-property@latest
        with:
          notion_api_key: secret_1234567890abcdef1234
          page_id: 1234567890abcdef1234567890abcdef
          key: 'Status'
          value: '{ "select": { "name" : "Done" } }'