Skip to content

Commit

Permalink
Notify ETL even if JSTOR is unchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
martimpassos authored Apr 5, 2024
1 parent 87b2d98 commit 3a70be5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/fetch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 3a70be5

Please sign in to comment.