Use checkout Alembic root in release integration
Some checks failed
Dependency Audit / dependency-audit (push) Failing after 1m36s
Release Integration / release-integration (push) Has been cancelled
Module Matrix / module-matrix (push) Has been cancelled

This commit is contained in:
2026-07-10 23:58:04 +02:00
parent 12b623bec9
commit 63e54a67be
2 changed files with 15 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ PY
RELEASE_TAG="${GOVOPLAN_RELEASE_TAG:-v$RELEASE_VERSION}" RELEASE_TAG="${GOVOPLAN_RELEASE_TAG:-v$RELEASE_VERSION}"
export RELEASE_TAG RELEASE_VERSION export RELEASE_TAG RELEASE_VERSION
export GOVOPLAN_CORE_SOURCE_ROOT="$ROOT"
export PATH="$WEBUI_BIN:$NODE_BIN:$PATH" export PATH="$WEBUI_BIN:$NODE_BIN:$PATH"
export NPM_CONFIG_USERCONFIG="$NPM_USERCONFIG" export NPM_CONFIG_USERCONFIG="$NPM_USERCONFIG"
unset npm_config_tmp NPM_CONFIG_TMP unset npm_config_tmp NPM_CONFIG_TMP

View File

@@ -191,7 +191,20 @@ def registered_module_migration_plan(
def _repo_root() -> Path: def _repo_root() -> Path:
return Path(__file__).resolve().parents[3] packaged_root = Path(__file__).resolve().parents[3]
configured = os.environ.get("GOVOPLAN_CORE_SOURCE_ROOT")
candidates = [
Path(configured).expanduser() if configured else None,
Path.cwd(),
packaged_root,
]
for candidate in candidates:
if candidate is None:
continue
resolved = candidate.resolve()
if (resolved / "alembic.ini").exists() and (resolved / "alembic").is_dir():
return resolved
return packaged_root
def alembic_config( def alembic_config(