Skip to content

Commit

Permalink
Update sync_docs.sh
Browse files Browse the repository at this point in the history
optimize sync docs
- sort version json
  • Loading branch information
ReneWerner87 authored Aug 7, 2023
1 parent 1e4e0c3 commit e4839ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/sync_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4839ea

Please sign in to comment.