From f18a9e6e17da2d0bc21e01a39a08e4b74bd4bb44 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Mon, 4 Nov 2024 16:00:01 -0600 Subject: [PATCH] lint create make directory make directory --- .github/workflows/update_source_data_schema_changelog.yml | 3 ++- scripts/update_source_data_schema_changelog.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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"