Skip to content

Commit

Permalink
chore: update data-refresh.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kuutsav authored Jun 9, 2024
1 parent 60d47e2 commit d78459f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/data-refresh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,15 @@ jobs:
git config --global user.name github-actions
git config --global user.email github-actions@github.com
git add .
git commit -m "action: daily data refresh"
git diff --staged --exit-code || has_changes=$?
if [ "$has_changes" == "1" ]; then
echo "Changes detected, committing..."
git commit -m "action: daily data refresh"
git push
else
echo "No changes to commit."
exit 1
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
Expand Down

0 comments on commit d78459f

Please sign in to comment.