From 3a70be5aa11a5d5fe31b61e9ecc377eb632363b9 Mon Sep 17 00:00:00 2001 From: Martim Passos <49573683+martimpassos@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:54:05 -0300 Subject: [PATCH] Notify ETL even if JSTOR is unchanged --- .github/workflows/fetch.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fetch.yml b/.github/workflows/fetch.yml index 89effb73..42c6b392 100644 --- a/.github/workflows/fetch.yml +++ b/.github/workflows/fetch.yml @@ -33,16 +33,14 @@ jobs: git config --global user.email 'martimpassos@users.noreply.github.com' git add -f input/jstor.xls if git diff --staged --quiet; then - echo "No changes detected, exiting." - echo "DATA_HAS_CHANGES=false" >> $GITHUB_ENV + echo "No changes detected, skipping commit." + exit 0 else - echo "DATA_HAS_CHANGES=true" >> $GITHUB_ENV git commit -am "Update JSTOR data" git push fi - name: Repository Dispatch - if: env.DATA_HAS_CHANGES != 'true' uses: peter-evans/repository-dispatch@v1 with: token: ${{ secrets.PARENT_REPO_TOKEN }}