diff --git a/.github/workflows/sync-helpz.yml b/.github/workflows/sync-helpz.yml index 5e87a29..c1e8113 100644 --- a/.github/workflows/sync-helpz.yml +++ b/.github/workflows/sync-helpz.yml @@ -23,8 +23,8 @@ jobs: run: | transpiled_dir="help/_posts/mirrorz-help-ng-transpiled" if [ -n "$NEW_COMMIT" ]; then - git -C "$transpiled_dir" fetch --all - git -C "$transpiled_dir" checkout "$NEW_COMMIT" + git -C "$transpiled_dir" fetch origin "+$NEW_COMMIT:refs/remotes/origin/incoming" --depth=1 + git -C "$transpiled_dir" checkout --force "$NEW_COMMIT" else git submodule update --remote "$transpiled_dir" fi