Skip to content

Commit a7b4551

Browse files
committed
Use git ls-remote to find latest tag name
1 parent a2fe293 commit a7b4551

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 tag -l --sort=v:refname | grep v4.0 | tail -1 | cut -c2-)
50+
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-)
5151
echo "Latest tag is $latest_tag..."
5252
echo $latest_tag >| $GITHUB_WORKSPACE/branch/documentation/site/layouts/shortcodes/latestVersion.html
5353
echo "Building documentation for latest minor version..."

0 commit comments

Comments
 (0)