Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
repository: vsag-io/vsag-io.github.io
token: ${{ secrets.GH_PAT }}
ref: main
path: repo-vsagio

- name: Sync docs books (zh, en)
Expand All @@ -47,11 +48,12 @@ jobs:
cd repo-vsagio
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -B sync origin/main
git add -A docs blogs landing
if [[ -z $(git status --porcelain) ]]; then
Comment thread
wxyucs marked this conversation as resolved.
echo "No changes to commit."
git push --force origin sync
exit 0
fi
git checkout -B sync
git add docs blogs landing
git commit -m "docs: sync from vsag@${{ github.sha }}"
git push --force origin sync
Loading