noc-book-2/.github/workflows/notion-git.yml
2023-02-26 10:09:00 -05:00

25 lines
713 B
YAML

name: Import Notion Docs and create PR
on:
workflow_dispatch:
jobs:
auto-sync-from-notion-to-github:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Fetch Notion content
uses: nature-of-code/fetch-notion@main
with:
notion-secret: ${{ secrets.NOTION_SECRET }}
notion-database-id: ${{ secrets.NOTION_DATABASE_ID }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: Notion - Update docs
signoff: false
branch: notion-update-docs
delete-branch: false
title: '[Notion] Update docs'