Skip to content

Commit 48e464e

Browse files
committed
preserve kokoro custom scripts
1 parent 5621824 commit 48e464e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

monorepo-migration/migrate.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ rm -f "$SOURCE_REPO_NAME/renovate.json"
183183
rm -f "$SOURCE_REPO_NAME/LICENSE"
184184
rm -f "$SOURCE_REPO_NAME/java.header"
185185
rm -rf "$SOURCE_REPO_NAME/.kokoro"
186+
git checkout -- "$SOURCE_REPO_NAME/.kokoro/presubmit/*.sh" || true
186187
# rm -rf "$SOURCE_REPO_NAME/.kokoro/continuous" "$SOURCE_REPO_NAME/.kokoro/nightly" "$SOURCE_REPO_NAME/.kokoro/presubmit"
187188

188189
# 6.6 Create split integration config if needed
@@ -392,6 +393,7 @@ if [ -d "$SOURCE_REPO_NAME/.github/workflows" ]; then
392393

393394
# Cleanup empty .github directory if it exists
394395
rm -rf "$SOURCE_REPO_NAME/.github"
396+
git checkout -- "$SOURCE_REPO_NAME/.github/scripts" || true
395397
git add -- "$SOURCE_REPO_NAME/.github"
396398

397399
echo "Committing workflow migration..."

0 commit comments

Comments
 (0)