From 7a02a8949e4fdceefbb28d6fa99e5fc0392b697f Mon Sep 17 00:00:00 2001 From: millianlmx Date: Fri, 26 Jun 2026 21:24:47 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20gitea=E2=86=92github=20context,=20add=20?= =?UTF-8?q?ios-deploy,=20remove=20-k?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/pr-iphone-deploy.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/pr-iphone-deploy.yml b/.gitea/workflows/pr-iphone-deploy.yml index 07646b3..55eb08b 100644 --- a/.gitea/workflows/pr-iphone-deploy.yml +++ b/.gitea/workflows/pr-iphone-deploy.yml @@ -47,6 +47,9 @@ jobs: cd tabatago-swift xcodegen generate + - name: Install ios-deploy + run: brew install ios-deploy + - name: Build & Install on iPhone env: IPHONE_UDID: ${{ secrets.IPHONE_UDID }} @@ -64,6 +67,9 @@ jobs: CODE_SIGN_STYLE=Automatic \ 2>&1 | tail -20 + # Install on connected iPhone + ios-deploy --bundle ../build/Build/Products/Debug-iphoneos/TabataGo.app --id ${IPHONE_UDID} + echo "✅ App built for iPhone (UDID: ${IPHONE_UDID})" - name: Post "Ready to test" comment @@ -71,8 +77,8 @@ jobs: GT_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_URL: ${{ vars.GITEA_URL || 'https://gitea.1000co.fr' }} run: | - PR="${{ gitea.event.pull_request.number }}" - REPO="${{ gitea.repository }}" + PR="${{ github.event.pull_request.number }}" + REPO="${{ github.repository }}" BODY="## 📱 Prêt à tester !\\n\\nL'app a été déployée sur ton iPhone.\\n\\n- Teste les changements\\n- Reply **LGTM** pour merger\\n- Reply **KO** pour bloquer" curl -s -X POST \ -H "Authorization: token ${GT_TOKEN}" \ @@ -93,9 +99,9 @@ jobs: GT_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_URL: ${{ vars.GITEA_URL || 'https://gitea.1000co.fr' }} run: | - PR_NUMBER="${{ gitea.event.pull_request.number }}" - REPO="${{ gitea.repository }}" - PR_TITLE="${{ gitea.event.pull_request.title }}" + PR_NUMBER="${{ github.event.pull_request.number }}" + REPO="${{ github.repository }}" + PR_TITLE="${{ github.event.pull_request.title }}" API="${GITEA_URL}/api/v1/repos/${REPO}" MAX_TRIES=240 # 2h = 240 × 30s TRIES=0