Skip to content

Instantly share code, notes, and snippets.

View gberenice's full-sized avatar

Veronika Gnilitska gberenice

  • Kyiv
View GitHub Profile
@gberenice
gberenice / github_repos_migration.sh
Last active January 28, 2025 14:24
Steps to Break Up a Terralith - Migration Script
#!/bin/bash
###
### `github_repos_migration.sh` script purpose is to migrate the state to a new GitHub repositories root module.
### This script must be run from your root-modules directory, see below for the expected directory structure.
### └── root-modules
### ├── terralith # legacy root module ($SRC_ROOT_MODULE)
### └── github-repos # new root module ($DESTINATION_ROOT_MODULE)
set -eu -o pipefail