From d351d3ae44f8fdc9b9ca20acdd66790de29d8c86 Mon Sep 17 00:00:00 2001 From: Radoslaw Nowacki Date: Fri, 25 Sep 2026 08:57:04 +0200 Subject: [PATCH 1/2] ci: let the Expo preview failure issue job run after a failed road test The job's `if` had no status function, so GitHub prepended `success() &&` and skipped it whenever android or ios failed, which is the only case it is meant to run in. Add `!cancelled()` so it runs on failure but not on a manually cancelled run. --- .github/workflows/expo-preview-road-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/expo-preview-road-test.yml b/.github/workflows/expo-preview-road-test.yml index b718ac6f..5c30830f 100644 --- a/.github/workflows/expo-preview-road-test.yml +++ b/.github/workflows/expo-preview-road-test.yml @@ -162,7 +162,9 @@ jobs: name: Create issue on Expo preview failure runs-on: ubuntu-latest needs: [prepare, android, ios] + # Without a status function GitHub prepends `success() &&`, which skips this job whenever a road test fails if: | + !cancelled() && needs.prepare.outputs.should_test == 'true' && (needs.android.result == 'failure' || needs.ios.result == 'failure') steps: From bf09889493fcab89f198de19ac981a908d76d65f Mon Sep 17 00:00:00 2001 From: Radoslaw Nowacki Date: Fri, 25 Sep 2026 09:09:29 +0200 Subject: [PATCH 2/2] ci: set GH_REPO for the Expo preview failure issue job The job has no checkout, so `gh issue list/create` failed with "not a git repository" before reaching the API. Point gh at the workflow's repository. --- .github/workflows/expo-preview-road-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/expo-preview-road-test.yml b/.github/workflows/expo-preview-road-test.yml index 5c30830f..ce200c1b 100644 --- a/.github/workflows/expo-preview-road-test.yml +++ b/.github/workflows/expo-preview-road-test.yml @@ -171,6 +171,8 @@ jobs: - name: Create or reuse GitHub issue env: GH_TOKEN: ${{ github.token }} + # No checkout in this job, so gh can't infer the repo from git + GH_REPO: ${{ github.repository }} run: | issue_title="Expo preview road test failed for ${{ needs.prepare.outputs.latest_version }}" existing_issue_number=$(gh issue list \