Skip to content

Commit

Permalink
Do not fail if there are no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Dec 24, 2024
1 parent 28fbf77 commit afe8548
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ jobs:
run: echo "NOW=$(date +'%Y-%m-%dT%H%M')" >> $GITHUB_ENV
- name: Commit and push
run: |
git diff-index --quiet HEAD src/main/resources/migrations.csv || (git commit -m "[Auto] Old GroupId migrations as of ${{ env.NOW }}" src/main/resources/migrations.csv && git push origin main)
git add src/main/resources/migrations.csv
git diff-index --quiet HEAD || (git commit -m "[Auto] Old GroupId migrations as of ${{ env.NOW }}" && git push origin main)

0 comments on commit afe8548

Please sign in to comment.