Skip to content

Commit fa8fbe6

Browse files
authored
infra: Update openapi merge task (#2389)
* Update openapi merge task Signed-off-by: Lars Geyer-Blaumeiser <lars.blaumeiser@cofinity-x.com> * Fix openapi merge call Signed-off-by: Lars Geyer-Blaumeiser <lars.blaumeiser@cofinity-x.com> --------- Signed-off-by: Lars Geyer-Blaumeiser <lars.blaumeiser@cofinity-x.com>
1 parent 866c125 commit fa8fbe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-openapi-ui.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,23 @@ jobs:
8888

8989
- name: Merge API specs
9090
run: |
91-
./gradlew -Pversion=${{ env.VERSION }} -PapiTitle="Tractus-X EDC ${{ matrix.apiGroup.name }} API" -PapiDescription="Tractus-X EDC ${{ matrix.apiGroup.name }} API Documentation" :mergeApiSpec --input=./resources/openapi/yaml/${{ matrix.apiGroup.name }} --output=./resources/openapi/yaml/${{ matrix.apiGroup.name }}.yaml
91+
./gradlew mergeOpenApiSpec --inputDir=${PWD}/resources/openapi/yaml/${{ matrix.apiGroup.name }} --output=${{ matrix.apiGroup.name }}.yaml --infoTitle="Tractus-X EDC ${{ matrix.apiGroup.name }} API" --infoDescription="Tractus-X EDC ${{ matrix.apiGroup.name }} API Documentation" --infoVersion=${{ env.VERSION }}
9292
env:
9393
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_API_TOKEN }}
9494

9595
- name: Generate Swagger UI current version
9696
uses: Legion2/swagger-ui-action@v1
9797
with:
9898
output: dist/${{ env.VERSION }}
99-
spec-file: resources/openapi/yaml/${{ matrix.apiGroup.name }}.yaml
99+
spec-file: ${{ matrix.apiGroup.name }}.yaml
100100
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101101

102102
- name: Generate Swagger UI stable version
103103
uses: Legion2/swagger-ui-action@v1
104104
if: ${{ !endsWith( env.VERSION, '-SNAPSHOT') }}
105105
with:
106106
output: dist
107-
spec-file: resources/openapi/yaml/${{ matrix.apiGroup.name }}.yaml
107+
spec-file: ${{ matrix.apiGroup.name }}.yaml
108108
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109109

110110
- uses: actions/upload-artifact@v5

0 commit comments

Comments
 (0)