mirror of
https://github.com/nature-of-code/noc-book-2
synced 2024-11-17 07:49:05 +01:00
25 lines
713 B
YAML
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'
|