-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.03 KB
/
import-notion-docs-PR.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.0.0'
cache: 'yarn'
- name: Yarn Install
run: yarn install
- name: Import Notion Docs
run: NOTION_TOKEN=${{ secrets.TOKEN_NOTION }} yarn import-notion-docs
- name: Update folder permissions
run: sudo chown -R $USER:$USER .
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Notion - Update docs
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: notion-update-docs
delete-branch: false
title: '[Notion] Update docs'