Skip to content

Commit 55da0a8

Browse files
Update template_update.yml
1 parent 6b4430e commit 55da0a8

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/template_update.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,13 @@ jobs:
325325
OLD_ROOT="${{ steps.render_old.outputs.project_root }}"
326326
NEW_ROOT="${{ steps.render_new.outputs.project_root }}"
327327
328-
RSYNC_EXCLUDES=(--exclude ".git" --exclude ".git/")
328+
RSYNC_EXCLUDES=(
329+
--exclude ".git"
330+
--exclude ".git/"
331+
--exclude "templates/"
332+
--exclude "templates/**"
333+
--exclude "version.json"
334+
)
329335
330336
if [ "${{ steps.auth.outputs.enabled }}" != "true" ]; then
331337
RSYNC_EXCLUDES+=(--exclude ".github/workflows/")
@@ -352,6 +358,10 @@ jobs:
352358
fi
353359
done < <(find . -type f -print)
354360
361+
# Never include template-only scaffolding
362+
rm -rf "$GITHUB_WORKSPACE/templates" || true
363+
rm -f "$GITHUB_WORKSPACE/version.json" || true
364+
355365
cd "$GITHUB_WORKSPACE"
356366
mv /tmp/workspace_git .git
357367

0 commit comments

Comments
 (0)