Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/narkdown/query-in-action
Query Notion database in the GitHub Action
https://github.com/narkdown/query-in-action
actions github-actions notion notion-api
Last synced: about 2 months ago
JSON representation
Query Notion database in the GitHub Action
- Host: GitHub
- URL: https://github.com/narkdown/query-in-action
- Owner: narkdown
- License: mit
- Created: 2021-10-15T13:58:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-26T12:45:22.000Z (about 3 years ago)
- Last Synced: 2024-11-18T05:38:20.223Z (2 months ago)
- Topics: actions, github-actions, notion, notion-api
- Language: JavaScript
- Homepage:
- Size: 326 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @narkdown/query-in-action
[![GitHub Action: View on Marketplace](https://img.shields.io/badge/GitHub%20Action-View_on_Marketplace-blue?logo=github)](https://github.com/marketplace/actions/narkdown-query-in-action)
[![narkdown](https://github.com/younho9/awesome-reading-list/actions/workflows/narkdown.yml/badge.svg?branch=main&event=schedule)](https://github.com/younho9/awesome-reading-list/actions/workflows/narkdown.yml)
[![GitHub version](https://badge.fury.io/gh/narkdown%2Fquery-in-action.svg)](https://badge.fury.io/gh/narkdown%2Fquery-in-action)
[![license: MIT](https://img.shields.io/badge/license-MIT-green.svg)](./LICENSE)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](https://developers.notion.com/docs)
### `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
- [younho9/awesome-reading-list](https://github.com/younho9/awesome-reading-list/blob/main/.github/workflows/narkdown.yml)
## Related
- [@narkdown/client](https://github.com/narkdown/client)
- [@narkdown/notion-parser](https://github.com/narkdown/notion-parser)
- [@narkdown/render-with-ejs](https://github.com/narkdown/render-with-ejs)## License
[MIT](LICENSE)