Merge pull request #7655 from andreBurnt/fix/maestro-skip-fork-prs

Maestro (local): skip the lane on pull requests from forks
This commit is contained in:
Benoit Marty
2026-09-07 14:26:52 +02:00
committed by GitHub
+4 -1
View File
@@ -20,6 +20,9 @@ jobs:
build-apk: build-apk:
name: Build APK name: Build APK
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Secrets are not available to pull_request runs from forks, so the Maestro job below
# cannot run for them; skip the build too, as its only consumer is that job.
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository
concurrency: concurrency:
group: ${{ format('maestro-build-{0}', github.ref) }} group: ${{ format('maestro-build-{0}', github.ref) }}
cancel-in-progress: true cancel-in-progress: true
@@ -73,6 +76,7 @@ jobs:
name: Maestro test suite name: Maestro test suite
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [ build-apk ] needs: [ build-apk ]
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository
# Allow only one to run at a time, since they use the same environment. # Allow only one to run at a time, since they use the same environment.
# Otherwise, tests running in parallel can break each other. # Otherwise, tests running in parallel can break each other.
# queue: max lets several runs wait their turn instead of the default, where a # queue: max lets several runs wait their turn instead of the default, where a
@@ -82,7 +86,6 @@ jobs:
queue: max queue: max
steps: steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
if: (github.event_name == 'pull_request' && github.event.pull_request.fork == null) || github.event_name == 'workflow_dispatch'
with: with:
# Ensure we are building the branch and not the branch after being merged on develop # Ensure we are building the branch and not the branch after being merged on develop
# https://github.com/actions/checkout/issues/881 # https://github.com/actions/checkout/issues/881