From c361a04738450d82f953aa0921007ccf8a8f619b Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Sat, 7 Oct 2023 10:14:16 +0200 Subject: [PATCH] Use free runner for Draft PRs (#1739) --- .github/workflows/android-ci.yml | 2 +- .github/workflows/linux-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml index a9e03feca..b2fdd5d48 100644 --- a/.github/workflows/android-ci.yml +++ b/.github/workflows/android-ci.yml @@ -44,7 +44,7 @@ jobs: "!**/*.md"] android-build: - runs-on: MapLibre_Native_Linux_16_core + runs-on: ${{ github.event.pull_request && !github.event.pull_request.draft && 'MapLibre_Native_Linux_16_core' || 'ubuntu-22.04' }} needs: - pre_job if: needs.pre_job.outputs.should_skip != 'true' diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index a70cee1b4..a882a773c 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -46,7 +46,7 @@ jobs: fail-fast: true matrix: renderer: [legacy, drawable] - runs-on: MapLibre_Native_Linux_16_core + runs-on: ${{ github.event.pull_request && !github.event.pull_request.draft && 'MapLibre_Native_Linux_16_core' || 'ubuntu-22.04' }} steps: - uses: actions/checkout@v4 with: