File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments