File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
tools/proto-convert/src/config Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ excluded_schemas:
1818 - CombinedFieldsQuery
1919 - DistanceFeatureQuery
2020 - GeoPolygonQuery
21- - GeoShapeQuery
2221 - HasChildQuery
2322 - HasParentQuery
2423 - MoreLikeThisQuery
You can’t perform that action at this time.
0 commit comments