Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/szenius/notion-update-page
Update Notion page property on merge of pull request
https://github.com/szenius/notion-update-page
action actions github github-actions notion notion-api notion-database notion-enhancer pull pull-request pull-requests pullrequest
Last synced: 24 days ago
JSON representation
Update Notion page property on merge of pull request
- Host: GitHub
- URL: https://github.com/szenius/notion-update-page
- Owner: szenius
- Created: 2021-09-11T05:58:10.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-05T17:07:32.000Z (over 1 year ago)
- Last Synced: 2024-09-29T19:03:18.056Z (about 1 month ago)
- Topics: action, actions, github, github-actions, notion, notion-api, notion-database, notion-enhancer, pull, pull-request, pull-requests, pullrequest
- Language: JavaScript
- Homepage:
- Size: 256 KB
- Stars: 14
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Notion Update Page
![on_master](https://github.com/szenius/notion-update-page/actions/workflows/on_master.yml/badge.svg)
GitHub action to update a Notion page property on commit created by merging a Pull Request.
Originally built for updating version tag in Notion page on commit. See [the test workflow](.github/workflows/on_master.yml) as an example.
## Example Usage
```yml
uses: szenius/[email protected]
with:
gh-username: "username"
gh-token: ${{ secrets.GH_ACCESS_TOKEN }}
notion-key: ${{ secrets.NOTION_KEY }}
notion-property-name: "Status"
notion-update-value: "Merged"
notion-property-type: "rich_text"
existing-value: "overwrite"
```- `gh-username`: GitHub username of user who has access to the repository
- `gh-token`: GitHub access token of user who has access to the repository
- `notion-key`: Notion Integration Secret Key
- `notion-property-name`: Notion Page property to be updated
- `notion-update-value`: New value for Notion page property
- `notion-property-type` (optional): Type of Notion Page property. Can be `rich_text` or `multi_select`. Defaults to `rich_text`.
- `existing-value` (optional): What to do with existing value in field to be updated. Can be `append` or `overwrite`. Defaults to
- `overwrite` if `notion-property-type` is `rich_text`
- `append` if `notion-property-type` is `multi_select`The [test workflow](.github/workflows/on_master.yml) is linked to [this Notion database](https://szenius.notion.site/4964f7c754f54c41abce56028d990ac6?v=9ece5b75d4914584b43685bcbc6f3d1c).