Facet counts and aggregations for Vector search #14158
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: OpenAPI Diff | |
| on: [pull_request] | |
| jobs: | |
| openapi-diff: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout HEAD | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| path: head | |
| - name: Checkout BASE | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| with: | |
| ref: ${{ github.base_ref }} | |
| path: base | |
| - name: Generate oasdiff summary | |
| id: oasdif_changelog | |
| run: | | |
| SUMMARY=$(docker run --rm \ | |
| --workdir ${{ github.workspace }} \ | |
| --volume ${{ github.workspace }}:${{ github.workspace }}:rw \ | |
| -e GITHUB_WORKSPACE=${{ github.workspace }} \ | |
| tufin/oasdiff changelog --composed --flatten-allof \ | |
| 'base/openapi/specs/*.yaml' \ | |
| 'head/openapi/specs/*.yaml' \ | |
| | head -1) | |
| echo "summary=$SUMMARY" >> $GITHUB_OUTPUT | |
| - name: Find existing comment | |
| id: find_comment | |
| uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| repository: ${{ github.repository }} | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body-includes: "## OpenAPI Changes" | |
| - name: Post changes as comment | |
| uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5 | |
| # Even if no changes, make sure to update old comment if it was found. | |
| if: steps.oasdif_changelog.outputs.summary || steps.find_comment.outputs.comment-id | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| edit-mode: "replace" | |
| repository: ${{ github.repository }} | |
| issue-number: ${{ github.event.pull_request.number }} | |
| comment-id: ${{ steps.find_comment.outputs.comment-id }} | |
| body: | | |
| ## OpenAPI Changes | |
| ${{ steps.oasdif_changelog.outputs.summary || 'No detectable change.' }} | |
| [View full changelog](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) | |
| Unexpected changes? Ensure your branch is up-to-date with `main` (consider rebasing). | |
| - name: Check for breaking changes | |
| id: oasdif_breaking | |
| run: | | |
| docker run --rm \ | |
| --workdir ${{ github.workspace }} \ | |
| --volume ${{ github.workspace }}:${{ github.workspace }}:ro \ | |
| -e GITHUB_WORKSPACE=${{ github.workspace }} \ | |
| tufin/oasdiff breaking \ | |
| --fail-on ERR \ | |
| --format githubactions \ | |
| --composed --flatten-allof \ | |
| 'base/openapi/specs/*.yaml' \ | |
| 'head/openapi/specs/*.yaml' |