mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
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:
parent
994a786336
commit
bee770f23c
1 changed files with 4 additions and 4 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue