Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/api-docs-update-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,22 @@ on:
branches:
- main
paths:
- 'protobuff/qubic.swagger.json' # Only trigger if the swagger file changed
- 'protobuff/qubic.openapi.yaml' # Only trigger if the OpenAPI file changed

jobs:
api-docs-update-trigger:
runs-on: ubuntu-latest
steps:
- name: Dispatch Event
- name: Dispatch to Integration
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GH_PAT }}
repository: qubic/integration
event-type: api-docs-update
event-type: api-docs-update

- name: Dispatch to Docs
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GH_PAT }}
repository: qubic/docs
event-type: live-api-update
2 changes: 2 additions & 0 deletions protobuff/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ all: $(GO) openapi-v3

openapi-v3:
protoc -I=. --openapi_out=output_mode=source_relative,default_response=false:. *.proto
@# Add x-scalar-ignore to auto-generated QubicLiveService tag
yq -i '(.tags[] | select(.name == "QubicLiveService")).x-scalar-ignore = true' qubic.openapi.yaml

clean:
rm -f *.pb.go
Expand Down
Loading