From 7fa4a486db1c4ea5dc4664399853c35553fec9ee Mon Sep 17 00:00:00 2001 From: andrewc Date: Tue, 8 Oct 2024 11:34:09 +1000 Subject: [PATCH] Fixed up token download --- kibot-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kibot-ci.yml b/kibot-ci.yml index 0a3b9e3..2abc305 100644 --- a/kibot-ci.yml +++ b/kibot-ci.yml @@ -127,15 +127,15 @@ image: boms: - cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/ - - apt update && apt install curl wget pip -y && pip install --break-system-packages poetry + - apt update && apt install curl pip -y && pip install --break-system-packages poetry - poetry install - cd /tmp - url="https://gitlab.com/api/v4/projects/${DIGI_API_PRJ_ID}/packages/generic/digikey_api/0/token_storage.json" - | if [[ -z "$KINTREE_DIGI_TOKEN" ]]; then - wget $url + curl --header "JOB-TOKEN: $CI_JOB_TOKEN" $url >> token_storage.json else - cp $KINTREE_DIGI_TOKEN token_storage.json + cp $KINTREE_DIGI_TOKEN token_storage.json fi - ls - cd $CI_PROJECT_DIR/Fabrication