From 6a411cdc3f2722a37a8aee6aa6644bf7869bfa1d Mon Sep 17 00:00:00 2001 From: Tim Hadwen Date: Sun, 24 May 2026 09:57:39 +0000 Subject: [PATCH] Use submodule path for upload-bom.sh instead of raw URL PCB projects already check out kicad-ci as a .gitlab submodule (GIT_SUBMODULE_STRATEGY: recursive). Using the local path keeps the script version pinned to the submodule pointer + removes the need for the kicad9 ref hardcoded in the curl URL. --- kibot-ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/kibot-ci.yml b/kibot-ci.yml index a6c8203..9ed55c3 100644 --- a/kibot-ci.yml +++ b/kibot-ci.yml @@ -343,14 +343,12 @@ generate_panel: image: curlimages/curl:8.10.1 before_script: - apk add --no-cache bash jq - # Fetch the upload script from the kicad-ci repo so the yml stays - # self-contained (GitLab's `include: project:` only ships the yml - # itself, not sibling files in the repo). The ref pins to kicad9 - # — bump if you move the script. - - | - curl -fsSL -o /usr/local/bin/upload-bom.sh \ - "https://gitlab.com/Micromelon/education/hardware/kicad-ci/-/raw/kicad9/scripts/upload-bom.sh" - chmod +x /usr/local/bin/upload-bom.sh + # Each PCB project checks out kicad-ci as a submodule under + # .gitlab/ (with GIT_SUBMODULE_STRATEGY: recursive at the top of + # this file), so scripts/upload-bom.sh is available locally — + # no raw-URL fetch needed, and the script's version stays in + # lockstep with the submodule pointer the project pins to. + - install -m 0755 "$CI_PROJECT_DIR/.gitlab/scripts/upload-bom.sh" /usr/local/bin/upload-bom.sh astable_dev: extends: .astable_base