diff --git a/.github/workflows/update-whats-new-ids.yml b/.github/workflows/update-whats-new-ids.yml index a9b846b0bca..4b0792cf14e 100644 --- a/.github/workflows/update-whats-new-ids.yml +++ b/.github/workflows/update-whats-new-ids.yml @@ -40,6 +40,7 @@ jobs: git config --local user.email "${{ env.BOT_EMAIL }}" git config --local user.name "${{ env.BOT_NAME }}" git add ./src/data/whats-new-ids.json + git clean -f git diff-index --quiet HEAD ./src/data/whats-new-ids.json || git commit -m 'chore(whats-new-ids): updated ids' echo "commit=true" >> $GITHUB_OUTPUT