File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 88
88
runs-on : ubuntu-latest
89
89
steps :
90
90
- uses : actions/checkout@v2
91
+ # breaking-change checks against last published release which is determined
92
+ # using the last published tag
93
+ - name : Get tags
94
+ run : git fetch --tags origin
91
95
- name : Run make breaking-change with json output to annotate PR
92
96
# Formats JSON output into Github workflow commands
93
97
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message
Original file line number Diff line number Diff line change @@ -22,9 +22,10 @@ BUF_DOCKER ?= bufbuild/buf:1.7.0
22
22
23
23
PROTOC := docker run --rm -u ${shell id -u} -v${PWD}:${PWD} -w${PWD} ${OTEL_DOCKER_PROTOBUF} --proto_path=${PWD}
24
24
BUF := docker run --rm -v "${PWD}:/workspace" -w /workspace ${BUF_DOCKER}
25
- # When checking for protobuf breaking changes, check against the upstream repo's main branch.
25
+ # When checking for protobuf breaking changes, check against the latest release tag
26
+ LAST_RELEASE_TAG := $(shell git tag --sort=committerdate | tail -1)
26
27
# Options are described in https://docs.buf.build/breaking/usage#git
27
- BUF_AGAINST ?= "https://github.com/open-telemetry/opentelemetry-proto.git"
28
+ BUF_AGAINST ?= "https://github.com/open-telemetry/opentelemetry-proto.git\ # tag=$(LAST_RELEASE_TAG) "
28
29
29
30
PROTO_GEN_CPP_DIR ?= $(GENDIR ) /cpp
30
31
PROTO_GEN_CSHARP_DIR ?= $(GENDIR ) /csharp
You can’t perform that action at this time.
0 commit comments