From ca8b9b7acb3f3b5dd7bea1a55b2ff42ff9b1465d Mon Sep 17 00:00:00 2001 From: shivam-sharma7 Date: Thu, 24 Oct 2024 08:35:54 +0530 Subject: [PATCH] fix(ci): ensure that the necessary files are added to the commit --- .github/workflows/protos.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/protos.yml b/.github/workflows/protos.yml index dc8815a..e0d7df2 100644 --- a/.github/workflows/protos.yml +++ b/.github/workflows/protos.yml @@ -72,8 +72,12 @@ jobs: run: | git config --global user.name 'GitHub Actions Bot' git config --global user.email '<>' - git add src/grpc/generated - git commit -m "Update generated sdk directory with latest changes" + git add src/grpc/generated package-lock.json package.json proto/ + if git diff-index --quiet HEAD; then + echo "No changes to commit" + else + git commit -m "Update generated sdk directory with latest changes" + fi - name: Push Changes env: