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)