Skip to content

Commit 4e1b9fb

Browse files
committed
Update latest version shortcode when building 4.0 documentation
1 parent f1e2be3 commit 4e1b9fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ 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-)
56+
echo "Latest tag is $latest_tag..."
57+
echo $latest_tag >| $GITHUB_WORKSPACE/branch-4.0/documentation/site/layouts/shortcodes/latestVersion.html
5558
hugo -s site -d "$GITHUB_WORKSPACE/WORK" -b https://oracle.github.io/weblogic-kubernetes-operator
5659
echo "Copying static files into place..."
5760
cp -R domains "$GITHUB_WORKSPACE/WORK"

0 commit comments

Comments
 (0)