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'
@@ -75,13 +75,13 @@ jobs:
75
75
id : commit_changes
76
76
if : steps.comparison.outputs.difference == 'true'
77
77
run : |
78
- git add ./Source/ImmutablezkEVMAPI/
78
+ git add " ./Source/ImmutablezkEVMAPI/"
79
79
if [ -n "$(git diff --cached)" ]; then
80
80
git commit -m "feat: update immutable zkEVM API package"
81
- echo "commit=true" >> $GITHUB_ENV
81
+ echo "commit=true" >> " $GITHUB_ENV"
82
82
else
83
83
echo "No changes to commit."
84
- echo "commit=false" >> $GITHUB_ENV
84
+ echo "commit=false" >> " $GITHUB_ENV"
85
85
fi
86
86
87
87
- name : Push changes
0 commit comments