From b1e7f75769902b1ca25786ec5b1bb7faea6c123c Mon Sep 17 00:00:00 2001 From: IgorTatarnikov Date: Fri, 29 Nov 2024 17:29:18 +0000 Subject: [PATCH] Remove mention of switcher file --- .github/workflows/docs_build_and_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs_build_and_deploy.yml b/.github/workflows/docs_build_and_deploy.yml index 68f6095..b0472bc 100644 --- a/.github/workflows/docs_build_and_deploy.yml +++ b/.github/workflows/docs_build_and_deploy.yml @@ -132,7 +132,7 @@ jobs: if [[ "${version}" != "dev" ]]; then # Updated switcher.json file SWITCHER_CONTENT=$(curl https://neuroblueprint.neuroinformatics.dev/latest/_static/switcher.json) - BASE_URL="$(jq -r '.[1].url|split("/")[0:3]|join("/")' $SWITCHER_FILE)" + BASE_URL="$(jq -r '.[1].url|split("/")[0:3]|join("/")' <<< $SWITCHER_CONTENT)" NEW_URL="${BASE_URL}/latest/" # Extract the current latest version entry FIRST_ENTRY=$(jq '.[0]' <<< "${SWITCHER_CONTENT}")