Skip to content

Commit

Permalink
write regardless
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 committed Oct 30, 2024
1 parent b1d124b commit c3c1ab8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update_source_data_schema_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$output" > changelog/source_data.md
echo "$existing_changelog"> changelog/source_data.md
- name: Commit changes
id: commit_changes
Expand Down
2 changes: 0 additions & 2 deletions scripts/get_source_data_schema_changelog.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit c3c1ab8

Please sign in to comment.