Skip to content

Commit ce29d8a

Browse files
committed
compare with latest common.proto
1 parent 31dedf3 commit ce29d8a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/backward-compatible-report.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,17 @@ jobs:
106106
run: |
107107
java -jar tools/bin/openapi-generator-cli.jar generate -c tools/proto-convert/src/config/protobuf-generator-config.yaml
108108
109+
- name: Check for auto-pr-branch and use its protos if exists
110+
run: |
111+
# Check if auto-pr-branch exists
112+
if git ls-remote --exit-code --heads origin auto-pr-branch > /dev/null 2>&1; then
113+
echo "Found auto-pr-branch, using its proto files for comparison"
114+
git fetch origin auto-pr-branch
115+
git checkout origin/auto-pr-branch -- protos/
116+
else
117+
echo "auto-pr-branch not found, using main branch proto files"
118+
fi
119+
109120
- name: Post Process Protobuf (dry-run for report)
110121
id: merge_report
111122
run: |

0 commit comments

Comments
 (0)