From f2d773e9afac106c4c9e32e0d34558c684d91572 Mon Sep 17 00:00:00 2001 From: IgorTatarnikov Date: Fri, 29 Nov 2024 17:39:57 +0000 Subject: [PATCH] Added path for switcher.json --- .github/workflows/docs_build_and_deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs_build_and_deploy.yml b/.github/workflows/docs_build_and_deploy.yml index b0472bc..d532674 100644 --- a/.github/workflows/docs_build_and_deploy.yml +++ b/.github/workflows/docs_build_and_deploy.yml @@ -148,10 +148,11 @@ jobs: # Combine the entries in the desired order UPDATED_SWITCHER_CONTENT=$(jq --argjson first_entry "$FIRST_ENTRY" --argjson new_entry "$NEW_ENTRY" --argjson updated_current_latest "$UPDATED_CURRENT_LATEST_ENTRY" '[$first_entry, $new_entry, $updated_current_latest] + .[2:]' <<< "$SWITCHER_CONTENT") + SWITCHER_FILE="${version}/_static/switcher.json" # Write the updated content back to switcher.json echo "$UPDATED_SWITCHER_CONTENT" > "$SWITCHER_FILE" - echo "switcher.json has been updated successfully." + echo "${version}/_static/switcher.json has been updated successfully." fi # If this is a new release, update the link from /latest to it