From fd32425d2495b681a9440f96f0be1c43142fbff5 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Mon, 23 Jan 2023 15:26:35 -0800 Subject: [PATCH] github: allow test_size to work outside of upstream repo --- .github/workflows/test_size.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_size.yml b/.github/workflows/test_size.yml index a518169a96..3e3f08fa6e 100644 --- a/.github/workflows/test_size.yml +++ b/.github/workflows/test_size.yml @@ -151,9 +151,9 @@ jobs: cd pr/ git config user.email "ardupilot-ci@ardupilot.org" git config user.name "ArduPilot CI" - git remote add ardupilot https://github.com/ArduPilot/ardupilot.git - git fetch --no-tags --prune --progress ardupilot ${{ github.event.pull_request.base.ref }} - git rebase ardupilot/${{ github.event.pull_request.base.ref }} + git remote add target_repo https://github.com/${{github.event.pull_request.base.repo.full_name}} + git fetch --no-tags --prune --progress target_repo ${{ github.event.pull_request.base.ref }} + git rebase target_repo/${{ github.event.pull_request.base.ref }} git submodule update --init --recursive --depth=1 # configure if [ $BOOTLOADER -eq 1 ]; then