Skip to content

Commit

Permalink
fix: github actions not being optimal (#3559)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImmutableJeffrey committed Feb 3, 2025
1 parent 6d94448 commit 2729ff6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/update-zkevm-api-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,18 @@ jobs:
fi
- name: NPM install OpenAPI Generator CLI globally
if: steps.comparison.outputs.difference == 'true'
run: npm install -g @openapitools/openapi-generator-cli

- name: Set execute permission on generate.sh
if: steps.comparison.outputs.difference == 'true'
run: chmod +x ./Source/ImmutablezkEVMAPI/openapi-generator/batch-files/generate.sh

- name: Convert line endings of generate.sh to Unix format
if: steps.comparison.outputs.difference == 'true'
run: sed -i -e 's/\r$//' ./Source/ImmutablezkEVMAPI/openapi-generator/batch-files/generate.sh

- name: Generate API if there are differences
- name: Generate API
if: steps.comparison.outputs.difference == 'true'
run: |
cd "./Source/ImmutablezkEVMAPI/openapi-generator/batch-files"
Expand Down

0 comments on commit 2729ff6

Please sign in to comment.