From 244270488accf7cec12c63e5f8e85c6193bed2ca Mon Sep 17 00:00:00 2001 From: Millian Lamiaux Date: Sun, 19 Jul 2026 18:44:28 +0200 Subject: [PATCH] fix(ci): only run pr-iphone-deploy when tabatago-swift or the workflow changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a paths: filter to the pull_request trigger so the iOS build+deploy only fires when the PR actually touches: - tabatago-swift/** (the iOS/watchOS app source) - .github/workflows/pr-iphone-deploy.yml (this workflow itself) PRs touching only AGENTS.md, admin-web/, youtube-worker/, supabase/, docs/, or root config no longer spin up the macOS runner — no point rebuilding and deploying an unchanged .app. Including the workflow file itself in paths: ensures a PR that only edits the workflow logic still triggers it (so this branch's own PR will run to validate the changes). --- .github/workflows/pr-iphone-deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pr-iphone-deploy.yml b/.github/workflows/pr-iphone-deploy.yml index 9ed691e..3426907 100644 --- a/.github/workflows/pr-iphone-deploy.yml +++ b/.github/workflows/pr-iphone-deploy.yml @@ -8,6 +8,12 @@ on: pull_request: branches: [main] types: [opened, synchronize, reopened] + # Only run the iOS build+deploy when the PR actually touches the Swift app + # or this workflow itself. Docs-only / backend-only / admin-web-only PRs + # skip the runner entirely (no point rebuilding an unchanged .app). + paths: + - 'tabatago-swift/**' + - '.github/workflows/pr-iphone-deploy.yml' # Every mutation (comments, merge) goes through the Gitea API with PR_API_TOKEN, # never the runner's native GITHUB_TOKEN — so a `permissions:` block would be