Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/scripts/init-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ license="$(config_value license 2>/dev/null || true)"
printf 'turbo_remote: %s\n' "$turbo_remote"
} > .github/code-foundry.yml

if [ "$config_path" = .github/template.yml ] && [ -f .github/template.yml ]; then
rm .github/template.yml
printf '%s\n' 'Migrated .github/template.yml to .github/code-foundry.yml.'
fi

if [ "$bootstrap" = false ]; then
printf '%s\n' 'Bootstrap skipped.'
exit 0
Expand Down
4 changes: 4 additions & 0 deletions .github/scripts/sync-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,10 @@ if [ "$mode" = "apply" ]; then
printf 'license_file: %s\n' "$license_file"
fi
} > .github/code-foundry.yml
if [ "$config_path" = .github/template.yml ] && [ -f .github/template.yml ]; then
rm .github/template.yml
printf '%s\n' 'Migrated .github/template.yml to .github/code-foundry.yml.'
fi
fi

if [ "$prune" = true ]; then
Expand Down