Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(ci): do not run gen-api unless rust files have changed (#1011)

Will Hutchinsonc5e16aa30c76
diff --git a/.github/workflows/web-app-check-main.yml b/.github/workflows/web-app-check-main.yml
index 3281c63527..5f238cabf8 100644
--- a/.github/workflows/web-app-check-main.yml
+++ b/.github/workflows/web-app-check-main.yml
@@ -14,6 +14,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
should_run: ${{ steps.filter.outputs.should_run }}
+ api_changed: ${{ steps.filter.outputs.api_changed }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
@@ -27,6 +28,8 @@ jobs:
- 'js/app/src/**'
- '.github/actions/setup-reqs-web/**'
- '.github/workflows/web-app-check-main.yml'
+ api_changed:
+ - 'rust/cloud-storage/**/*.rs'
typescript:
needs: path-check
@@ -45,6 +48,7 @@ jobs:
with:
version: 2.2.6
- name: Generate API Types
+ if: needs.path-check.outputs.api_changed == 'true'
working-directory: js/app
run: bun run gen-api -- --check
- name: Check Types