diff --git a/bin/delete-samples-split-repo.sh b/bin/delete-everything-split-repo.sh similarity index 93% rename from bin/delete-samples-split-repo.sh rename to bin/delete-everything-split-repo.sh index bf972f34baa..d2cb5fc10f0 100755 --- a/bin/delete-samples-split-repo.sh +++ b/bin/delete-everything-split-repo.sh @@ -35,9 +35,9 @@ git checkout -b 'deleteMostOfLibrary' shopt -s extglob -# Delete everything first that's not the samples, README.md, and git folder -rm -rf !("samples"|"README.md"|".git") -rm -rf "/tmp/${SPLIT_REPO}/.[!.git]*" +# Delete everything first that's not the samples, README.md, .kokoro folder, and git folder +rm -rf !("samples"|"README.md"|".git"|".kokoro") +rm -rf "/tmp/${SPLIT_REPO}/.[!.git|!.kokoro]*" rm -rf "/tmp/${SPLIT_REPO}/.github" IGNORE_README_TXT="# Copyright 2022 Google LLC diff --git a/bin/migrate-split-repo.sh b/bin/migrate-split-repo.sh index ae5ca6d8cd4..a2a4a21fe4e 100755 --- a/bin/migrate-split-repo.sh +++ b/bin/migrate-split-repo.sh @@ -40,8 +40,8 @@ ${SCRIPT_DIR}/migrate-git-history.sh \ "" \ "${PACKAGE_PATH}" \ ".kokoro,.github,.trampolinerc,SECURITY.md,renovate.json,samples" \ - ".github/.OwlBot.yaml,samples/quickstart.js,samples/test/quickstart.js,samples/test/quickstart.test.js,system-test/test/quickstart.test.js,system-test/test/quickstart.js,samples/README.md,samples/package.json,samples/generated" + ".github/.OwlBot.yaml,samples/quickstart.js,samples/test/quickstart.js,samples/.eslintrc.yml,samples/test/sample.test.js,samples/test/quickstart.test.js,system-test/test/quickstart.test.js,system-test/test/quickstart.js,samples/README.md,samples/package.json,samples/generated" # run the script to update the split repo and either delete all the samples or just update the README -${SCRIPT_DIR}/delete-samples-split-repo.sh ${SPLIT_REPO} ${ARTIFACT_NAME} +${SCRIPT_DIR}/delete-everything-split-repo.sh ${SPLIT_REPO} ${ARTIFACT_NAME} ${SCRIPT_DIR}/update-readme-only-split-repo.sh ${SPLIT_REPO} ${ARTIFACT_NAME}