From c3c1ab81039487ea2ee36138833bc55d82b921a8 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 16:40:26 -0500 Subject: [PATCH] write regardless --- .github/workflows/update_source_data_schema_changelog.yml | 5 +++-- scripts/get_source_data_schema_changelog.py | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index 0478f412..3b079a08 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -29,8 +29,9 @@ jobs: git clone --branch master https://github.com/stellar/stellar-etl-airflow.git repo_master_copy cp -r repo_master_copy/schemas/ original_schemas/ output=$(python3 scripts/get_source_data_schema_changelog.py) - if [[ -n "$output" ]]; then - echo "hello" + existing_changelog=$( changelog/source_data.md + echo "$existing_changelog"> changelog/source_data.md - name: Commit changes id: commit_changes diff --git a/scripts/get_source_data_schema_changelog.py b/scripts/get_source_data_schema_changelog.py index df0d2092..187a14f0 100644 --- a/scripts/get_source_data_schema_changelog.py +++ b/scripts/get_source_data_schema_changelog.py @@ -1,11 +1,9 @@ import os import json -# Directories containing old and new schemas old_schemas_dir = "original_schemas" new_schemas_dir = "new_schemas" -# Check if the directories exist if not os.path.exists(old_schemas_dir): print(f"Directory {old_schemas_dir} does not exist.") exit(1)