Skip to content

Commit

Permalink
add install dependencies to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Lavinia Talpas authored and Lavinia Talpas committed Oct 10, 2024
1 parent 2bd1367 commit f38e156
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/generate-sdk.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
name: Update SDK

on:
repository_dispatch:
types: [update-api-file]

jobs:
update_sdk:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,6 +30,10 @@ jobs:
echo "api_changed=false" >> $GITHUB_ENV
fi
- name: Install dependencies
if: env.api_changed == 'true'
run: npm install

- name: Generate SDK only if API changed
if: env.api_changed == 'true'
run: |
Expand Down

0 comments on commit f38e156

Please sign in to comment.