Skip to content

Commit 34aeb4e

Browse files
committed
fix (ci) : fix openapi-generator package version
1 parent fa28033 commit 34aeb4e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/generate-specs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
build_web_specs:
1616
runs-on: ubuntu-latest
1717
env:
18-
RELEASE_NAME: "${{ github.ref_name || github.event.inputs.tag }}"
18+
RELEASE_NAME: "${{ github.event.inputs.tag || github.ref_name }}"
1919

2020
steps:
2121
- name: Check release name matches version pattern
@@ -44,11 +44,11 @@ jobs:
4444
key: ${{ runner.os }}-node-generator
4545

4646
- name: Install AsyncAPI CLI and Generator 👨🏻‍💻
47-
run: npm i -g @asyncapi/cli @asyncapi/generator
47+
run: npm i -g @asyncapi/generator@2
4848

4949
# Use AsyncAPI generator to generate the HTML bundle
5050
- name: Generate docs for Hub Santé interface ⚙️
51-
run: asyncapi generate fromTemplate csv_parser/out/hubsante.asyncapi.yaml @asyncapi/html-template -o web_specs/generated/ --force-write
51+
run: npx -p @asyncapi/generator@2 ag csv_parser/out/hubsante.asyncapi.yaml @asyncapi/html-template -o web_specs/generated/ --force-write
5252

5353
- name: Set up Docker Buildx
5454
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)