-
Notifications
You must be signed in to change notification settings - Fork 26
35 lines (30 loc) · 953 Bytes
/
docs.yaml
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
name: Docs
on:
push:
branches:
- main
- anmol/automated-docs-pipeline # debug branch: todo: remove before merge
paths:
- "docs/**"
- ".github/workflows/docs.yaml"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Clone docs repository
run: git clone https://x-access-token:${{ secrets.GH_PAT_TOKEN }}@github.com/cosmology-tech/docs.git external-docs
- name: Sync the docs
run: |
rsync -av --delete ./docs/pages/ ./external-docs/pages/starship/
cd external-docs
git config user.name 'GitHub Action'
git config user.email '[email protected]'
git add .
git commit -m "Aotumated: Update starship documentation from starship repo"
if git diff --quiet; then
echo "No changes to commit."
else
git push
fi