Skip to content

Commit

Permalink
don't clone metadata repo during a build
Browse files Browse the repository at this point in the history
  • Loading branch information
damonmcc committed Dec 20, 2024
1 parent a041b06 commit 7bcbcbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions products/template/build_scripts/export.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import shutil

from dcpy.configuration import PRODUCT_METADATA_REPO_PATH
from dcpy.utils.logging import logger
from dcpy.models.product.metadata import OrgMetadata
from dcpy.connectors.github import clone_repo
Expand Down Expand Up @@ -27,8 +28,7 @@
def generate_data_dictionaries():
dataset_metadata_path = PRODUCT_PATH / "data_dictionary.yml"

org_metadata_path = clone_repo("product-metadata", PRODUCT_PATH)
org_metadata = OrgMetadata.from_path(org_metadata_path)
org_metadata = OrgMetadata.from_path(PRODUCT_METADATA_REPO_PATH)

metadata = org_metadata.product("template_db").dataset("template_db")
metadata.write_to_yaml(dataset_metadata_path)
Expand Down

0 comments on commit 7bcbcbe

Please sign in to comment.