Skip to content

Commit c018727

Browse files
committed
fix(SSC-357): downgrade swagger-codegen to 3.0.24
1 parent 4928b00 commit c018727

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/api-docs-generator.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ on:
1010
schedule:
1111
- cron: '0 0 * * *'
1212
workflow_dispatch:
13+
inputs:
14+
force:
15+
description: 'Force generation without checking for differences'
16+
required: false
17+
default: false
18+
type: boolean
1319
push:
1420
branches:
1521
- develop
@@ -31,8 +37,11 @@ jobs:
3137
key: oas--${{ hashFiles(env.FILE_NAME) }}
3238
- name: Stop process (no changes)
3339
id: checksum
34-
if: steps.cache.outputs.cache-hit == 'true'
40+
if: steps.cache.outputs.cache-hit == 'true' && github.event.inputs.force != 'true'
3541
run: echo "::set-output name=diff::true"
42+
- name: Force generation
43+
if: github.event.inputs.force == 'true'
44+
run: echo "::set-output name=diff::false"
3645
- name: Generate specification artifacts
3746
if: steps.checksum.outputs.diff != 'true'
3847
uses: actions/upload-artifact@v4
@@ -68,7 +77,7 @@ jobs:
6877
with:
6978
java-version: '11'
7079
- name: Download swagger codegen
71-
run: wget https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.68/swagger-codegen-cli-3.0.68.jar -O swagger-codegen-cli.jar
80+
run: wget https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.24/swagger-codegen-cli-3.0.24.jar -O swagger-codegen-cli.jar
7281
- name: Generate SDK files
7382
run: java -jar swagger-codegen-cli.jar generate --git-user-id=DocPlanner --git-repo-id integrations-api-sdk-php -DinvokerPackage=DocPlanner\\Client -i ${{ env.FILE_NAME }} -l php -o ./final/ -t ${{ env.CODEGEN_TEMPLATES_FOLDER }}
7483
- name: Patch library files

0 commit comments

Comments
 (0)