Skip to content

Commit

Permalink
Update sync_docs.sh
Browse files Browse the repository at this point in the history
optimize docs sync
- sort version json
  • Loading branch information
ReneWerner87 authored Aug 7, 2023
1 parent a992c80 commit ea10295
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 @@ -45,7 +45,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 ea10295

Please sign in to comment.