Skip to content

Commit

Permalink
do not create a new version in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 committed Jul 1, 2024
1 parent 49ba8df commit 1e84c18
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/scripts/sync_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ elif [ "$EVENT" == "release" ]; then
npm ci

# 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
fi

# Run docusaurus versioning command
$DOCUSAURUS_COMMAND "${new_version}"

if [[ -f $VERSION_FILE ]]; then
jq 'sort | reverse' ${VERSION_FILE} > temp.json && mv temp.json ${VERSION_FILE}
fi
# if [[ -f $VERSION_FILE ]]; then
# jq --arg new_version "$new_version" 'del(.[] | select(. == $new_version))' $VERSION_FILE > temp.json && mv temp.json $VERSION_FILE
# fi
#
# # Run docusaurus versioning command
# $DOCUSAURUS_COMMAND "${new_version}"
#
# if [[ -f $VERSION_FILE ]]; then
# jq 'sort | reverse' ${VERSION_FILE} > temp.json && mv temp.json ${VERSION_FILE}
# fi
fi

# Push changes
Expand Down

0 comments on commit 1e84c18

Please sign in to comment.