File tree 2 files changed +7
-7
lines changed
Source/ImmutablezkEVMAPI/openapi-generator/batch-files
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 21
21
22
22
- name : Get current date and time
23
23
id : date
24
- run : echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M-%S')"
24
+ run : echo "name=date::$(date +'%Y-%m-%d-%H-%M-%S')" >> "$GITHUB_OUTPUT "
25
25
26
26
- name : Download remote openapi.json
27
27
run : curl -o openapi_remote.json https://imx-openapiv3-mr-sandbox.s3.us-east-2.amazonaws.com/openapi.json
@@ -37,10 +37,10 @@ jobs:
37
37
- name : Compare remote openapi.json with local openapi.json
38
38
id : comparison
39
39
run : |
40
- if diff openapi_remote.json ./Source/ImmutablezkEVMAPI/openapi-generator/openapi.json > /dev/null; then
41
- echo "::set-output name=difference::false"
40
+ if diff " openapi_remote.json" " ./Source/ImmutablezkEVMAPI/openapi-generator/openapi.json" > /dev/null; then
41
+ echo "name=difference::false" >> "$GITHUB_OUTPUT "
42
42
else
43
- echo "::set-output name=difference::true"
43
+ echo "name=difference::true" >> "$GITHUB_OUTPUT "
44
44
fi
45
45
46
46
- name : NPM install OpenAPI Generator CLI globally
55
55
- name : Generate API if there are differences
56
56
if : steps.comparison.outputs.difference == 'true'
57
57
run : |
58
- cd ./Source/ImmutablezkEVMAPI/openapi-generator/batch-files
58
+ cd " ./Source/ImmutablezkEVMAPI/openapi-generator/batch-files"
59
59
./generate.sh
60
- cd ../../../../
60
+ cd " ../../../../"
61
61
62
62
- name : Clean up
63
63
if : steps.comparison.outputs.difference == 'true'
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ INPUT="-i https://imx-openapiv3-mr-sandbox.s3.us-east-2.amazonaws.com/openapi.js
8
8
OUTPUT=" -o ../.."
9
9
ADDITIONAL_PROPERTIES=" --additional-properties=modelNamePrefix=API,cppNamespace=ImmutablezkEVMAPI,unrealModuleName=ImmutablezkEVMAPI"
10
10
11
- $OPENAPI_GENERATOR_CLI generate $GENERATOR $TEMPLATE $INPUT $OUTPUT $ADDITIONAL_PROPERTIES
11
+ $OPENAPI_GENERATOR_CLI generate " $GENERATOR " " $TEMPLATE " " $INPUT " " $OUTPUT " " $ADDITIONAL_PROPERTIES "
You can’t perform that action at this time.
0 commit comments