File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 10
10
schedule :
11
11
- cron : ' 0 0 * * *'
12
12
workflow_dispatch :
13
+ inputs :
14
+ force :
15
+ description : ' Force generation without checking for differences'
16
+ required : false
17
+ default : false
18
+ type : boolean
13
19
push :
14
20
branches :
15
21
- develop
31
37
key : oas--${{ hashFiles(env.FILE_NAME) }}
32
38
- name : Stop process (no changes)
33
39
id : checksum
34
- if : steps.cache.outputs.cache-hit == 'true'
40
+ if : steps.cache.outputs.cache-hit == 'true' && github.event.inputs.force != 'true'
35
41
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"
36
45
- name : Generate specification artifacts
37
46
if : steps.checksum.outputs.diff != 'true'
38
47
uses : actions/upload-artifact@v4
68
77
with :
69
78
java-version : ' 11'
70
79
- 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
72
81
- name : Generate SDK files
73
82
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 }}
74
83
- name : Patch library files
You can’t perform that action at this time.
0 commit comments