mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-07-26 11:49:16 +00:00
fix(ci): exclude .git from rsync --delete in sync-docs
rsync --delete removes everything in the destination that is absent from the source. sencho/docs/ has no .git directory, so rsync was deleting sencho-docs/.git/ on every run. The commit step then had no git repo to work with, giving 'fatal: not in a git directory'. Fix: add --exclude='.git' to the rsync invocation.
This commit is contained in:
@@ -268,7 +268,9 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Copy /docs into sencho-docs root
|
||||
run: rsync -av --delete sencho/docs/ sencho-docs/
|
||||
# --exclude='.git' prevents rsync --delete from wiping the .git
|
||||
# directory that was just cloned/initialized in the previous step.
|
||||
run: rsync -av --delete --exclude='.git' sencho/docs/ sencho-docs/
|
||||
|
||||
- name: Commit and push to sencho-docs
|
||||
working-directory: sencho-docs
|
||||
|
||||
Reference in New Issue
Block a user