From 79121d1b8f6d8f63df6690794bb77a911c04200a Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 16:14:47 -0500 Subject: [PATCH] Try cloning repo update update --- .github/workflows/update_source_data_schema_changelog.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index 4daba374..ad795991 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -23,16 +23,19 @@ jobs: - name: Run Bash Script run: | + set -x cd $GITHUB_WORKSPACE cp -r schemas/ new_schemas/ - git checkout master - cp -r schemas/ old_schemas + git clone --branch master https://github.com/stellar/stellar-etl-airflow.git repo_master_copy + cp -r repo_master_copy/schemas/ old_schemas/ output=$(python3 scripts/get_source_data_schema_changelog.py) echo "$output" > changelog/source_data.md - name: Commit changes id: commit_changes run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" git add changelog/source_data.md if git commit -m "Update changelog for Source data"; then echo "Changes committed."