Skip to content

Commit

Permalink
OH2-246 Fix (#401)
Browse files Browse the repository at this point in the history
* Add files via upload

* Use oasdiff action

just check difference with the latest uploaded openapi spec

* Update pom.xml
  • Loading branch information
mwithi committed Nov 22, 2023
1 parent f1f2208 commit 36d882c
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 182 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ jobs:
sleep 60
- name: Generate OpenAPI yaml
run: mvn springdoc-openapi:generate
run: mvn springdoc-openapi:generate -Dspringdoc.outputFileName=oh_rev.yaml

#TODO: FIX OH2-246
# - name: Update PR with OpenAPI specs changes (if any)
# uses: gr2m/create-or-update-pull-request-action@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# commit-message: "GitHub Action: update openapi"
# path: "openapi"
# branch: ${{ steps.extract_branch.outputs.branch }}
- name: Running OpenAPI Spec breaking action
# run: |
# tenant_id=`curl -d '{"tenant": "oh", "email": "[email protected]"}' https://register.oasdiff.com/tenants | jq -r .id`
# curl -o output -X POST -F base=@openapi/oh.yaml -F revision=@openapi/oh_rev.yaml https://api.oasdiff.com/tenants/${tenant_id}/breaking-changes
# cat output
uses: oasdiff/oasdiff-action/breaking@main
with:
base: openapi/oh.yaml
revision: openapi/oh_rev.yaml
fail-on-diff: true
Loading

0 comments on commit 36d882c

Please sign in to comment.