actions-marketplace-validations/notion-blog-action
将 notion database 中的 page 转换为 markdown 文档,可以用于 hexo、hugo 等静态博客构建 支持自动将图片迁移到 aliyun oss
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| token | notion app token,建议最好放到 Action Secret 中 | yes | — |
| database_id | notion 中的数据库 id - 假设你的数据库页面链接是 `https://www.notion.so/you-name/0f3d856498ca4db3b457c5b4eeaxxxxx` - 那么 `database_id=0f3d856498ca4db3b457c5b4eeaxxxxx` | yes | — |
| status_name | notion database 状态字段的字段名,支持自定义 | — | status |
| status_published | notion database 文章已发布状态的字段值 | — | 已发布 |
| status_unpublish | notion database 文章待发布状态的字段值 触发 action 后会自动拉去所有��状态的文章,成功导出之后会把这篇文章的状态修改为上面设置的已发布状态 | — | 待发布 |
| migrate_image | 是否迁移图片到 aliyun oss 注意: 如果不迁移图片默认导出图片链接是 notion 的自带链接,有访问时效 目前支持迁移图片到 aliyun oss 中 | — | true |
| output | 输出的文件夹路径 | no | — |
| access_key_id | aliyun access_key_id | yes | — |
| access_key_secret | aliyun access_key_secret | yes | — |
| bucket | aliyun bucket | yes | — |
| area | aliyun area: oss-cn-hangzhou | yes | oss-cn-hangzhou |
| prefix | file dir, e.g. image/ | — | — |
Outputs
no outputs