Skip to content

Commit

Permalink
chore: fix update client actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mfal committed Aug 22, 2024
1 parent 39cb6ca commit fc6c693
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/update-client-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ jobs:
- name: Update OpenAPI ⬇️
if: github.ref == 'refs/heads/dev'
run: |
yarn nx run @mittwald/api-client:build:client-dev
yarn nx run @mittwald/api-client:build:fetch-openapi-dev
if [ $(git status --porcelain . | wc -l) -gt 0 ] ; then
yarn nx run @mittwald/api-client:build:client-dev
git add .
yarn test
git commit -m "chore: update generated development client";
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
- name: Update OpenAPI ⬇️
if: github.ref == 'refs/heads/master'
run: |
yarn nx run @mittwald/api-client:build:fetch-openapi
yarn nx run @mittwald/api-client:build:fetch-openapi-prod
if [ $(git status --porcelain . | wc -l) -gt 0 ] ; then
yarn nx run @mittwald/api-client:build:client
yarn nx run @mittwald/api-client:build:client-prod
git add .
yarn test
git commit -m "feat: update generated client";
Expand Down

0 comments on commit fc6c693

Please sign in to comment.