Skip to content

synchronize-docs

synchronize-docs #7

Workflow file for this run

name: synchronize-docs
on:
push:
branches:
- main
workflow_dispatch:
jobs:
synchronize:
runs-on: ubuntu-latest
steps:
- name: Checkout cli
uses: actions/checkout@v5
with:
path: cli
- name: Checkout docs
uses: actions/checkout@v5
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 "[email protected]"
- name: synchronize docs
run: |
cp cli/docs docs/cli
cd docs
git add .
git commit -m "chore(cli): updating docs"
git push origin main