forked from polynote/polynote.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 692 Bytes
/
docs.yml
File metadata and controls
28 lines (26 loc) · 692 Bytes
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
name: Docs from Polynote
on:
push:
branches:
- master
schedule:
- cron: '*/15 * * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docs
run: |
set -x
git clone https://github.com/polynote/polynote.git
cp -r polynote/docs/. docs/
git status
rm -r polynote/
git config --global user.email "polynote-ci@polynote.org"
git config --global user.name "Polynote CI"
git commit -am "automated docs update" || true
- name: Create PR with changes
uses: peter-evans/create-pull-request@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}