diff --git a/.github/workflows/pr-iphone-deploy.yml b/.github/workflows/pr-iphone-deploy.yml index 8a55925..ee7fd69 100644 --- a/.github/workflows/pr-iphone-deploy.yml +++ b/.github/workflows/pr-iphone-deploy.yml @@ -8,9 +8,6 @@ on: pull_request: branches: [main] types: [opened, synchronize, reopened] - paths: - - 'tabatago-swift/**' - - '.github/workflows/pr-iphone-deploy.yml' permissions: contents: write @@ -18,8 +15,28 @@ permissions: jobs: + # ── Path filter — only run if tabatago-swift changed ── + changes: + name: Detect Changes + runs-on: nas-runner + outputs: + tabatago-swift: ${{ steps.filter.outputs.tabatago-swift }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + tabatago-swift: + - 'tabatago-swift/**' + build-deploy: name: Build & Deploy to iPhone (WiFi/USB) + needs: changes + if: needs.changes.outputs.tabatago-swift == 'true' runs-on: macos timeout-minutes: 20