From e4839eaeba9318526f05223fa8db8c7f4af62380 Mon Sep 17 00:00:00 2001 From: RW Date: Mon, 7 Aug 2023 15:51:16 +0200 Subject: [PATCH] Update sync_docs.sh optimize sync docs - sort version json --- .github/scripts/sync_docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/sync_docs.sh b/.github/scripts/sync_docs.sh index 4b58a1e128..ae870a728d 100755 --- a/.github/scripts/sync_docs.sh +++ b/.github/scripts/sync_docs.sh @@ -37,7 +37,7 @@ elif [ "$EVENT" == "release" ]; then # Check if contrib_versions.json exists and modify it if required if [[ -f $VERSION_FILE ]]; then jq --arg new_version "$new_version" 'del(.[] | select(. == $new_version))' $VERSION_FILE >temp.json && mv temp.json $VERSION_FILE - jq -S . ${VERSION_FILE} >temp.json && mv temp.json ${VERSION_FILE} + jq 'sort | reverse' ${VERSION_FILE} >temp.json && mv temp.json ${VERSION_FILE} fi # Run docusaurus versioning command