Skip to content

Commit 585c78c

Browse files
committed
Use git ls-remote to find latest tag
1 parent 4e1b9fb commit 585c78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
5353
cd $GITHUB_WORKSPACE/branch-4.0/documentation
5454
echo "Building documentation for latest minor version..."
55-
latest_tag=$(git tag -l --sort=v:refname | grep v4.0 | tail -1 | cut -c2-)
55+
latest_tag=$(git ls-remote https://github.com/oracle/weblogic-kubernetes-operator.git --h --sort origin "refs/tags/v*" | cut -f2 | grep v4.0 | tail -1 | cut -c12-)
5656
echo "Latest tag is $latest_tag..."
5757
echo $latest_tag >| $GITHUB_WORKSPACE/branch-4.0/documentation/site/layouts/shortcodes/latestVersion.html
5858
hugo -s site -d "$GITHUB_WORKSPACE/WORK" -b https://oracle.github.io/weblogic-kubernetes-operator

0 commit comments

Comments
 (0)