From bee770f23c969d8f4debf5d1ce65a7e94e240dc5 Mon Sep 17 00:00:00 2001 From: p-szafonimateusz Date: Mon, 29 Dec 2025 10:03:20 +0100 Subject: [PATCH] github/ci: use user repository to export sources Use current user repo to export sources instead of hardcoded Apache repositories. Otherwise, CI doesn't work well when testing external repositories because it can't download the correct source-bundle. Signed-off-by: p-szafonimateusz --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7620862b61254..07faaf29a36dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,13 +74,13 @@ jobs: # Determine the repo and leave that unset to use the normal checkout behavior # of using the merge commit instead of HEAD case $GITHUB_REPOSITORY in - "apache/nuttx") + "$GITHUB_ACTOR/nuttx") # OS echo "Triggered by change in OS" APPS_REF=$REF_NAME ;; - "apache/nuttx-apps" ) + "$GITHUB_ACTOR/nuttx-apps" ) # APPS OS_REF=$REF_NAME echo "Triggered by change in APPS" @@ -98,7 +98,7 @@ jobs: - name: Checkout nuttx repo uses: actions/checkout@v6 with: - repository: apache/nuttx + repository: ${{ github.actor }}/nuttx ref: ${{ steps.gittargets.outputs.os_ref }} path: sources/nuttx fetch-depth: 1 @@ -108,7 +108,7 @@ jobs: - name: Checkout apps repo uses: actions/checkout@v6 with: - repository: apache/nuttx-apps + repository: ${{ github.actor }}/nuttx-apps ref: ${{ steps.gittargets.outputs.apps_ref }} path: sources/apps fetch-depth: 1