From 21427db884965978936a1e81a7af67ffbf069a18 Mon Sep 17 00:00:00 2001 From: Savsis Date: Mon, 27 Apr 2026 22:14:09 +0500 Subject: [PATCH] Refine app path search in main.yml workflow Updated app location search logic in workflow. --- .github/workflows/main.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 55b4b96..459edab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,12 +51,16 @@ jobs: CODE_SIGNING_ALLOWED=NO \ ENABLE_BITCODE=NO + - name: Locate app + run: | + echo "=== DerivedData ===" + find "$RUNNER_TEMP/DerivedData" -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" || echo "nothing in DerivedData" + echo "=== runner work ===" + find /Users/runner/work -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "node_modules" || echo "nothing in runner/work" + - name: Package IPA run: | - APP_PATH=$(find "$RUNNER_TEMP/DerivedData/Build/Products" -name "*.app" -type d | grep -v "\.xctest" | grep -v "simulator" | head -1) - if [ -z "$APP_PATH" ]; then - APP_PATH=$(find "$RUNNER_TEMP/DerivedData" -name "*.app" -type d | grep -v "\.xctest" | grep -v "simulator" | head -1) - fi + APP_PATH=$(find /Users/runner -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "node_modules" | grep -v "Xcode.app" | grep -v "CoreSimulator" | grep -v "Cellar" | head -1) echo "APP_PATH: $APP_PATH" mkdir -p Payload cp -r "$APP_PATH" Payload/