File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments