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 <p-szafonimateusz@xiaomi.com>
This commit is contained in:
p-szafonimateusz 2025-12-29 10:03:20 +01:00
parent 994a786336
commit bee770f23c
No known key found for this signature in database
GPG key ID: 80BDA883437A37B1

View file

@ -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