Skip to content

Commit

Permalink
Add check if there is new data and push if that is the case
Browse files Browse the repository at this point in the history
  • Loading branch information
gillesvink committed Dec 18, 2023
1 parent 67371c5 commit 04a4dd3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test_and_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ jobs:
git config user.email 'github-actions[bot]@users.noreply.github.com'
git branch
git pull
git commit -a -m "${{ github.event.head_commit.message }}"
git push
if [[ -n $(git status -s) ]]; then
git commit -a -m "${{ github.event.head_commit.message }}"
git push
else
echo "No changes to commit."
fi

0 comments on commit 04a4dd3

Please sign in to comment.