diff --git a/.woodpecker/go-generate.yaml b/.woodpecker/go-generate.yaml index 0a68b7c..e1569b8 100644 --- a/.woodpecker/go-generate.yaml +++ b/.woodpecker/go-generate.yaml @@ -19,7 +19,8 @@ steps: image: bufbuild/buf commands: - buf generate - - cp -r ./gen/go ./target/pkg + - rm -rf ./target/pkg/* + - cp -r ./gen/go/* ./target/pkg - name: Clone go repo image: alpine environment: @@ -33,4 +34,4 @@ steps: - git -C ./target checkout $CI_COMMIT_BRANCH || git -C ./target checkout -b $CI_COMMIT_BRANCH - git -C ./target add . - 'git -C ./target commit -m "Update protobuf definitions: $CI_COMMIT_SHA"' - - git -C ./target push + - git -C ./target push --set-upstream origin $CI_COMMIT_BRANCH diff --git a/proto/test/v1/test_v1.proto b/proto/test/v1/test_v1.proto index 159f506..149c8ed 100644 --- a/proto/test/v1/test_v1.proto +++ b/proto/test/v1/test_v1.proto @@ -7,8 +7,13 @@ option go_package = "gitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg */ service TestService { rpc Ping (PingRequest) returns (PingResponse) {} + rpc Pong (PongRequest) returns (PongResponse) {} } message PingRequest {} message PingResponse {} + +message PongRequest {} + +message PongResponse {}