Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated build pipeline to not fail when there are no changes in the generated mocks #234

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

jessegeens
Copy link
Contributor

The current pipeline has a bit of code that generates mock files based on the defined interfaces, and then automatically commits them:

mockery
git add .
git commit -m 'Generated mock interfaces for https://github.com/cern-eos/grpc-proto/tree/${{ github.sha }}'
git push origin main

This makes the pipeline fail, because git commit will return a non-zero exit code when there is nothing to commit. This PR solves this issue.

@glpatcern glpatcern merged commit 481d698 into main Sep 30, 2024
2 checks passed
@jessegeens jessegeens deleted the feature/mockery branch September 30, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants