Skip to content

Commit

Permalink
Added path for switcher.json (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov authored Nov 29, 2024
1 parent 33f17b8 commit 2edc920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docs_build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2edc920

Please sign in to comment.