-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (34 loc) · 862 Bytes
/
push-docs.yml
File metadata and controls
39 lines (34 loc) · 862 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
29
30
31
32
33
34
35
36
37
38
39
name: Synchronize Docs
on:
push:
branches:
- main
paths:
- "docs/**"
workflow_dispatch:
jobs:
synchronize:
runs-on: ubuntu-latest
steps:
- name: Checkout cli
uses: actions/checkout@v6
with:
path: cli
- name: Checkout docs
uses: actions/checkout@v6
with:
path: docs
repository: nanoforge-dev/docs
token: ${{ secrets.ACTIONS_KEY }}
- name: setup git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "username@users.noreply.github.com"
- name: synchronize docs
run: |
mkdir -p docs/cli
cp cli/docs/. -r docs/cli
cd docs
git add .
git commit -m "chore(cli): updating docs"
git push origin main