Skip to content

Commit f60fb38

Browse files
fix rsync when cache is empty
1 parent b9d348f commit f60fb38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/render-and-publish-incremental.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
cd /tmp/site-cache
4141
git ls-files -z -- site/ | xargs -0 -I{} sh -c 'ts=$(git log -1 --format=%ct -- "{}" || true); if [ -n "$ts" ]; then touch -d "@$ts" "{}"; fi'
4242
cd -
43-
rsync -a --ignore-existing /tmp/site-cache/site/ site/
43+
rsync -a --ignore-existing /tmp/site-cache/site/ site/ || true
4444
echo "Contents of site/ after restore:"
4545
ls -lah site/ | head -50
4646

0 commit comments

Comments
 (0)