From 481d69824855c64dc8df6a08f9b1ad03ffc25685 Mon Sep 17 00:00:00 2001 From: Jesse Geens Date: Mon, 30 Sep 2024 09:17:54 +0200 Subject: [PATCH] Updated build pipeline to not fail when there are no changes in the generated mocks (#234) Co-authored-by: Jesse Geens --- .github/workflows/build-and-publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index c4f9db3..714cb7e 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -35,8 +35,7 @@ jobs: go install github.com/vektra/mockery/v2@v2.40.0 # Later versions are incompatible with Go 1.21 mockery git add . - git commit -m 'Generated mock interfaces for https://github.com/cern-eos/grpc-proto/tree/${{ github.sha }}' - git push origin main + git commit -m 'Generated mock interfaces for https://github.com/cern-eos/grpc-proto/tree/${{ github.sha }}' && git push origin main || echo "Nothing to commit" - name: setup-buf uses: bufbuild/buf-setup-action@v1 - name: push-buf