From 9f9171575e872c8ac7dba07614aa09476a5a57ee Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Tue, 7 Apr 2026 18:24:04 -0700 Subject: [PATCH] ci(apt): gate apt mirror swap on runs-on at the workflow level Add 'if: startsWith(runner.name, "runs-on--")' to the mirror swap step in both workflows so fork users can see at a glance that the step only fires on runs-on runners and is a no-op on standard GitHub-hosted runners. The script keeps its internal RUNS_ON_AWS_REGION check as defense in depth for callers outside these workflows. Signed-off-by: Ramon Roche --- .github/workflows/build_deb_package.yml | 1 + .github/workflows/compile_ubuntu.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build_deb_package.yml b/.github/workflows/build_deb_package.yml index 573d4fd463..24a3d109b0 100644 --- a/.github/workflows/build_deb_package.yml +++ b/.github/workflows/build_deb_package.yml @@ -99,6 +99,7 @@ jobs: fetch-tags: true - name: Use AWS regional apt mirror + if: startsWith(runner.name, 'runs-on--') run: ./Tools/ci/use_aws_apt_mirror.sh - name: Cache apt packages diff --git a/.github/workflows/compile_ubuntu.yml b/.github/workflows/compile_ubuntu.yml index 27c0d46649..08975c9a6d 100644 --- a/.github/workflows/compile_ubuntu.yml +++ b/.github/workflows/compile_ubuntu.yml @@ -50,6 +50,7 @@ jobs: - uses: actions/checkout@v4 - name: Use AWS regional apt mirror + if: startsWith(runner.name, 'runs-on--') run: ./Tools/ci/use_aws_apt_mirror.sh - name: Install Deps, Build, and Make Quick Check