Skip to content

Commit 65b8ffb

Browse files
committed
test
1 parent a1583bf commit 65b8ffb

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/convert-proto.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,28 @@ jobs:
144144
echo "changed=true" >> $GITHUB_OUTPUT
145145
fi
146146
147+
- name: Generate diff file for common.proto
148+
id: generate_diff
149+
if: github.event_name == 'pull_request' && steps.check_changes.outputs.changed == 'true'
150+
run: |
151+
git add -N .
152+
git diff protos/schemas/common.proto > common-proto.diff || true
153+
154+
if [ -s common-proto.diff ]; then
155+
echo "changed=true" >> $GITHUB_OUTPUT
156+
else
157+
echo "changed=false" >> $GITHUB_OUTPUT
158+
fi
159+
160+
- name: Upload common.proto diff
161+
if: github.event_name == 'pull_request' && steps.generate_diff.outputs.changed == 'true'
162+
uses: actions/upload-artifact@v4
163+
with:
164+
name: common-proto-diff
165+
path: common-proto.diff
166+
147167
- name: Create Pull Request if changes exist
148-
if: steps.check_changes.outputs.changed == 'true'
168+
if: github.event_name != 'pull_request' && steps.check_changes.outputs.changed == 'true' && github.repository == 'opensearch-project/opensearch-protobufs'
149169
uses: peter-evans/create-pull-request@v7
150170
with:
151171
token: ${{ secrets.GITHUB_TOKEN }}

tools/proto-convert/src/config/spec-filter.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ excluded_schemas:
1818
- CombinedFieldsQuery
1919
- DistanceFeatureQuery
2020
- GeoPolygonQuery
21-
- GeoShapeQuery
2221
- HasChildQuery
2322
- HasParentQuery
2423
- MoreLikeThisQuery

0 commit comments

Comments
 (0)