Skip to content

Commit b2607a0

Browse files
authored
added workflow file to sync docs with wheels.dev
1 parent 4274dde commit b2607a0

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/docs-sync.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Sync Docs to Repo B
2+
3+
on:
4+
push:
5+
branches:
6+
- docs-sync-with-wheels.dev
7+
paths:
8+
- 'docs/src/**'
9+
- '.github/workflows/docs-sync.yml'
10+
11+
jobs:
12+
sync:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout Wheels Repo
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Git
20+
run: |
21+
git config --global user.name "github-actions[bot]"
22+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
23+
24+
- name: Clone wheels.dev
25+
run: |
26+
git clone https://x-access-token:${{ secrets.PATWHEELSDEV }}@github.com/paiindustries/wheels.dev.git
27+
cd wheels.dev
28+
git checkout docs-sync-from-wheels
29+
cd ..
30+
rsync -av --delete docs/src/ wheels.dev/docs/3.0.0/guides/
31+
32+
- name: Commit & Push to wheels.dev
33+
run: |
34+
cd wheels.dev
35+
git add docs/3.0.0/guides/
36+
git commit -m "Sync docs from Wheels-FW" || echo "No changes to commit"
37+
git push origin docs-sync-from-wheels

0 commit comments

Comments
 (0)