/query-in-action

Query Notion database in the GitHub Action

Primary LanguageJavaScriptMIT LicenseMIT

@narkdown/query-in-action

GitHub Action: View on Marketplace narkdown GitHub version license: MIT

This action returns the result of querying and parsing the Notion database.

Inputs

notion-api-key

Required Notion API Key. How to get Notion API Key

database-id

Required Notion Database ID.

https://www.notion.so/myworkspace/a8aec43384f447ed84390e8e42c2e089?v=...
                                  |--------- Database ID --------|
Show advanced input options

date-option-timezone

Timezone ID used to parse date properties.

Default Asia/Seoul

date-option-format

Date formatting rules used to parse data properties.

Default yyyy-MM-dd HH:mm:ss

sort-option-timestamp

Database query sorting criteria. created_time | last_edited_time

Default created_time

sort-option-direction

Database query sorting direction. ascending | descending

Default descending

Outputs

rows

Parsed result of Notion database rows.

Example usage

Related

License

MIT