Skip to content

Commit 72180c7

Browse files
fix: linting errors for zkevm api scripts (#3522)
1 parent 92f92de commit 72180c7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/update-zkevm-api-package.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Get current date and time
2323
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"
2525

2626
- name: Download remote openapi.json
2727
run: curl -o openapi_remote.json https://imx-openapiv3-mr-sandbox.s3.us-east-2.amazonaws.com/openapi.json
@@ -37,10 +37,10 @@ jobs:
3737
- name: Compare remote openapi.json with local openapi.json
3838
id: comparison
3939
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"
4242
else
43-
echo "::set-output name=difference::true"
43+
echo "name=difference::true" >> "$GITHUB_OUTPUT"
4444
fi
4545
4646
- name: NPM install OpenAPI Generator CLI globally
@@ -55,9 +55,9 @@ jobs:
5555
- name: Generate API if there are differences
5656
if: steps.comparison.outputs.difference == 'true'
5757
run: |
58-
cd ./Source/ImmutablezkEVMAPI/openapi-generator/batch-files
58+
cd "./Source/ImmutablezkEVMAPI/openapi-generator/batch-files"
5959
./generate.sh
60-
cd ../../../../
60+
cd "../../../../"
6161
6262
- name: Clean up
6363
if: steps.comparison.outputs.difference == 'true'

Source/ImmutablezkEVMAPI/openapi-generator/batch-files/generate.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ INPUT="-i https://imx-openapiv3-mr-sandbox.s3.us-east-2.amazonaws.com/openapi.js
88
OUTPUT="-o ../.."
99
ADDITIONAL_PROPERTIES="--additional-properties=modelNamePrefix=API,cppNamespace=ImmutablezkEVMAPI,unrealModuleName=ImmutablezkEVMAPI"
1010

11-
$OPENAPI_GENERATOR_CLI generate $GENERATOR $TEMPLATE $INPUT $OUTPUT $ADDITIONAL_PROPERTIES
11+
$OPENAPI_GENERATOR_CLI generate "$GENERATOR" "$TEMPLATE" "$INPUT" "$OUTPUT" "$ADDITIONAL_PROPERTIES"

0 commit comments

Comments
 (0)