From 5ff63474931e612a0013ecd79c9c8b0fb60598ad Mon Sep 17 00:00:00 2001 From: Jesse Geens Date: Mon, 30 Sep 2024 09:07:50 +0200 Subject: [PATCH] Updated build pipeline to not fail when there are no changes in the generated mocks --- .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