Skip to content

Commit

Permalink
Merge branch 'master' into new_rs_format
Browse files Browse the repository at this point in the history
  • Loading branch information
dakshvar22 authored Sep 11, 2020
2 parents 2cc1b9d + 2fc72d4 commit a648d81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/push_docs_to_branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ NEW_VERSION=
EXISTING_VERSION=
if [[ "$GITHUB_REF" =~ $PATTERN_FOR_NEW_VERSION ]]
then
NEW_VERSION=${GITHUB_REF/refs\/tags\//}
NEW_VERSION=$(echo $GITHUB_REF | sed -E "s/^refs\/tags\/([0-9]+)\.([0-9]+)\.0$/\1.\2.x/")
elif [[ "$GITHUB_REF" =~ $PATTERN_FOR_PATCH_VERSION ]]
then
EXISTING_VERSION=$(echo $GITHUB_REF | sed -E "s/^refs\/tags\/([0-9]+)\.([0-9]+)\.[0-9]+$/\1.\2.0/")
EXISTING_VERSION=$(echo $GITHUB_REF | sed -E "s/^refs\/tags\/([0-9]+)\.([0-9]+)\.[0-9]+$/\1.\2.x/")
fi

# clone the $DOCS_BRANCH in a temp directory
Expand Down

0 comments on commit a648d81

Please sign in to comment.