diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index 1418c41e..fe653ace 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -28,7 +28,8 @@ jobs: OLD_SCHEMAS_DIR=original_schemas cp -r schemas/ new_schemas/ git clone --branch master https://github.com/stellar/stellar-etl-airflow.git repo_master_copy - cp -r repo_master_copy/schemas/ OLD_SCHEMAS_DIR + mkdir OLD_SCHEMAS_DIR + cp -r repo_master_copy/schemas/ $OLD_SCHEMAS_DIR/ export OLD_SCHEMAS_DIR python3 scripts/update_source_data_schema_changelog.py diff --git a/scripts/update_source_data_schema_changelog.py b/scripts/update_source_data_schema_changelog.py index db4dd83a..41d31f93 100644 --- a/scripts/update_source_data_schema_changelog.py +++ b/scripts/update_source_data_schema_changelog.py @@ -1,9 +1,9 @@ +import json import os import sys -import json from datetime import datetime -OLD_SCHEMAS_DIR = os.environ.get(OLD_SCHEMAS_DIR) +OLD_SCHEMAS_DIR = os.environ.get("OLD_SCHEMAS_DIR") NEW_SCHEMAS_DIR = "schemas" CHANGELOG_FILEPATH = "changelog/source_data.md"