Skip to content

Commit b558010

Browse files
committed
Correct calculation of latest version label
1 parent 0bdc1c6 commit b558010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish-latest-minor-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
4848
cd $GITHUB_WORKSPACE/branch/documentation
4949
echo "Documentation branch is $GITHUB_REF_NAME..."
50-
latest_tag=$(git ls-remote https://github.com/oracle/weblogic-kubernetes-operator.git --h --sort origin "refs/tags/v*" | cut -f2 | grep v4.2 | tail -1 | cut -c12-)
50+
latest_tag=$(git ls-remote https://github.com/oracle/weblogic-kubernetes-operator.git --h --sort origin "refs/tags/v*" | cut -f2 | grep v4.2 | cut -c12- | sort --version-sort | tail -1)
5151
echo "Latest tag is $latest_tag..."
5252
echo $latest_tag >| $GITHUB_WORKSPACE/branch/documentation/site/layouts/shortcodes/latestVersion.html
5353
cat $GITHUB_WORKSPACE/branch/documentation/site/layouts/shortcodes/latestVersion.html

0 commit comments

Comments
 (0)