From afe85484e8203b1160922b4eaca25d6e823fc75b Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Tue, 24 Dec 2024 14:18:56 +0100 Subject: [PATCH] Do not fail if there are no changes --- .github/workflows/migrations.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/migrations.yml b/.github/workflows/migrations.yml index 0eaa946..a05c7b1 100644 --- a/.github/workflows/migrations.yml +++ b/.github/workflows/migrations.yml @@ -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)