From ad0b95f38ef66f997b0e3ec0d51ee82840eca9ac Mon Sep 17 00:00:00 2001 From: Daniel Skinstad Drabitzius Date: Fri, 31 Jan 2025 15:34:12 +0100 Subject: [PATCH] ci: allow `MENDER_MCU_REVISION` to fetch PR branches Makes it possible to checkout to branches like `pull/123/head` Signed-off-by: Daniel Skinstad Drabitzius --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9365392..e5e2076 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -73,7 +73,7 @@ build:board: - cd /zephyr-workspace-cache - west update --narrow -o=--depth=1 --path-cache /zephyr-workspace-cache - echo "Building for ${MENDER_MCU_BOARD} with revision ${MENDER_MCU_REVISION}" - - cd modules/mender-mcu && git fetch mender - - git checkout mender/${MENDER_MCU_REVISION} && cd - + - cd modules/mender-mcu && git fetch mender ${MENDER_MCU_REVISION} + - git checkout FETCH_HEAD && cd - - west build --board ${MENDER_MCU_BOARD} ${CI_PROJECT_DIR} parallel: !reference [.boards-matrix, parallel]