From a083af8d3f38e9dbf7ab11fd42067be5b3a10553 Mon Sep 17 00:00:00 2001 From: DaneEvans Date: Wed, 9 Jul 2025 03:19:05 +1000 Subject: [PATCH] skip test and lint on automated branch (#2375) --- .github/workflows/pull-request.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 0621944b3..60b735e75 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -2,15 +2,24 @@ name: Android CI (PR) on: pull_request: - branches: [ main ] + branches: + - main concurrency: group: build-pr-${{ github.ref }} cancel-in-progress: true jobs: + scheduled_updates: + if: github.head_ref == 'scheduled-updates' + runs-on: ubuntu-latest + steps: + - name: Always pass for scheduled-updates + run: echo Scheduled updates branch, auto-passing by default. + + build_and_detekt: - if: github.repository == 'meshtastic/Meshtastic-Android' + if: github.repository == 'meshtastic/Meshtastic-Android' && github.head_ref != 'scheduled-updates' uses: ./.github/workflows/reusable-android-build.yml secrets: GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} @@ -18,7 +27,7 @@ jobs: androidTest: # AssumingandroidTest should also only run for the main repository - if: github.repository == 'meshtastic/Meshtastic-Android' + if: github.repository == 'meshtastic/Meshtastic-Android' && github.head_ref != 'scheduled-updates' uses: ./.github/workflows/reusable-android-test.yml with: api_levels: '[35]' # Run only on API 35 for PRs