From 869adbbd1cecedccc2f9fa28f66aa7a2d03dc5d8 Mon Sep 17 00:00:00 2001 From: ilia-shipitsin <125650415+ilia-shipitsin@users.noreply.github.com> Date: Wed, 5 Apr 2023 14:02:45 +0200 Subject: [PATCH] hide builds using dedicated runners from forks (#7377) --- .github/workflows/macos-generation.yml | 5 +++++ .github/workflows/ubuntu-win-generation.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/macos-generation.yml b/.github/workflows/macos-generation.yml index e91f4470c..156df7064 100644 --- a/.github/workflows/macos-generation.yml +++ b/.github/workflows/macos-generation.yml @@ -40,7 +40,12 @@ defaults: jobs: build: + # + # "macos-vmware" is dedicated runner not available in forks. + # to reduce undesired run attempts in forks, stick jobs to "actions" organization only + # runs-on: macos-vmware + if: ${{ github.repository_owner == 'actions' }} timeout-minutes: 1200 steps: - uses: azure/login@v1 diff --git a/.github/workflows/ubuntu-win-generation.yml b/.github/workflows/ubuntu-win-generation.yml index 9acf66438..48dea710e 100644 --- a/.github/workflows/ubuntu-win-generation.yml +++ b/.github/workflows/ubuntu-win-generation.yml @@ -24,7 +24,12 @@ defaults: jobs: build: + # + # "azure-builds" is dedicated runner not available in forks. + # to reduce undesired run attempts in forks, stick jobs to "actions" organization only + # runs-on: azure-builds + if: ${{ github.repository_owner == 'actions' }} timeout-minutes: 1200 steps: - name: Determine checkout type