Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ steps:
uses: actions/checkout@v4

- name: Preview markdown synchronization
uses: Myastr0/mk-notes/preview@v1
uses: Myastr0/mk-notes/preview
with:
input: './docs' # The path to the markdown file or directory to preview
format: 'plainText' # The format of the preview ("plainText" or "json")
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
uses: actions/checkout@v4

- name: Preview synchronization
uses: Myastr0/mk-notes/preview@v1
uses: Myastr0/mk-notes/preview
with:
input: './docs'
format: 'plainText'
Expand All @@ -68,7 +68,7 @@ jobs:

- name: Sync to Notion
if: github.event_name == 'push'
uses: Myastr0/mk-notes/sync@v1
uses: Myastr0/mk-notes/sync
with:
input: './docs'
destination: ${{ secrets.NOTION_DOCS_PAGE_URL }}
Expand All @@ -92,7 +92,7 @@ jobs:
uses: actions/checkout@v4

- name: Generate JSON preview
uses: Myastr0/mk-notes/preview@v1
uses: Myastr0/mk-notes/preview
with:
input: './docs'
format: 'json'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ steps:
uses: actions/checkout@v4

- name: Sync markdown to Notion
uses: Myastr0/mk-notes/sync@v1
uses: Myastr0/mk-notes/sync
with:
input: './docs' # The path to the markdown file or directory to synchronize
destination: 'https://notion.so/your-page-id'
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
uses: actions/checkout@v4

- name: Sync documentation to Notion
uses: Myastr0/mk-notes/sync@v1
uses: Myastr0/mk-notes/sync
with:
input: './docs'
destination: ${{ secrets.NOTION_DOCS_PAGE_URL }}
Expand All @@ -86,7 +86,7 @@ jobs:
uses: actions/checkout@v4

- name: Sync to Notion
uses: Myastr0/mk-notes/sync@v1
uses: Myastr0/mk-notes/sync
with:
input: './docs'
destination: ${{ secrets.NOTION_DOCS_PAGE_URL }}
Expand All @@ -109,7 +109,7 @@ jobs:
uses: actions/checkout@v4

- name: Clean sync to Notion
uses: Myastr0/mk-notes/sync@v1
uses: Myastr0/mk-notes/sync
with:
input: './content'
destination: ${{ secrets.NOTION_DOCS_PAGE_URL }}
Expand Down
8 changes: 4 additions & 4 deletions docs/content/docs/github-actions/best-practices.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Always use the preview action before syncing to verify the structure:

```yaml
- name: Preview changes
uses: Myastr0/mk-notes/preview@v1
uses: Myastr0/mk-notes/preview
with:
input: './docs'
format: 'plainText'

- name: Sync to Notion
if: github.ref == 'refs/heads/main'
uses: Myastr0/mk-notes/sync@v1
uses: Myastr0/mk-notes/sync
with:
input: './docs'
destination: ${{ secrets.NOTION_DOCS_PAGE_URL }}
Expand Down Expand Up @@ -58,7 +58,7 @@ Consider using different Notion pages for different branches:

```yaml
- name: Sync to Notion
uses: Myastr0/mk-notes/sync@v1
uses: Myastr0/mk-notes/sync
with:
input: './docs'
destination: ${{ github.ref == 'refs/heads/main' && secrets.NOTION_MAIN_DOCS_PAGE_URL || secrets.NOTION_DEV_DOCS_PAGE_URL }}
Expand Down Expand Up @@ -89,7 +89,7 @@ Add proper error handling to your workflows:

```yaml
- name: Sync to Notion
uses: Myastr0/mk-notes/sync@v1
uses: Myastr0/mk-notes/sync
with:
input: './docs'
destination: ${{ secrets.NOTION_DOCS_PAGE_URL }}
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/github-actions/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Always use the preview action to verify structure before syncing:

```yaml
- name: Preview synchronization
uses: Myastr0/mk-notes/preview@v1
uses: Myastr0/mk-notes/preview
with:
input: './docs'
format: 'plainText'
Expand Down