From 65d85b6d5d5b0098a12cef48ff35531162cfd514 Mon Sep 17 00:00:00 2001 From: Millian Lamiaux Date: Sun, 12 Jul 2026 07:33:30 +0200 Subject: [PATCH] =?UTF-8?q?fix(ci):=20pr-iphone-deploy=20=E2=80=94=20rempl?= =?UTF-8?q?acer=20paths=20trigger=20par=20dorny/paths-filter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le paths sur on.pull_request ne fonctionne pas de manière fiable dans Gitea Actions. Passage à un job 'changes' avec dorny/paths-filter@v3 (identique au pattern de ci.yml) qui détecte les changements dans tabatago-swift/** avant de lancer le build sur le runner macos. --- .github/workflows/pr-iphone-deploy.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) 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