From 0f83e3e3abb5d01e34ab8915f850e3ee3c6f896c Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Sun, 1 Feb 2026 15:14:51 -0600 Subject: [PATCH] Refactor PR workflow to include check-changes step (#4397) --- .github/workflows/pull-request.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 0763c5ae5..98bf0f355 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,5 +1,3 @@ -name: Android CI (PR) - on: pull_request: branches: @@ -41,16 +39,20 @@ jobs: secrets: inherit build: - needs: lint - if: ${{ !cancelled() && !failure() }} + needs: + - check-changes + - lint + if: ${{ needs.check-changes.outputs.code_changed == 'true' && !cancelled() && !failure() }} uses: ./.github/workflows/reusable-android-build.yml with: test_flavors: 'google' secrets: inherit androidTest: - needs: lint - if: ${{ !cancelled() && !failure() }} + needs: + - check-changes + - lint + if: ${{ needs.check-changes.outputs.code_changed == 'true' && !cancelled() && !failure() }} uses: ./.github/workflows/reusable-android-test.yml with: api_levels: '[35]' # Run only on API 35 for PRs