Skip to content

Commit a2fe293

Browse files
committed
Try to diagnose failure with documentation generation and latest tag
1 parent 5d22e9e commit a2fe293

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ 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-)
51+
echo "Latest tag is $latest_tag..."
52+
echo $latest_tag >| $GITHUB_WORKSPACE/branch/documentation/site/layouts/shortcodes/latestVersion.html
5053
echo "Building documentation for latest minor version..."
51-
git tag -l --sort=v:refname | grep v4.0 | tail -1 | cut -c2- > $GITHUB_WORKSPACE/branch/documentation/site/layouts/shortcodes/latestVersion.html
5254
hugo -s site -d "$GITHUB_WORKSPACE/WORK" -b https://oracle.github.io/weblogic-kubernetes-operator
5355
echo "Copying static files into place..."
5456
cp -R domains "$GITHUB_WORKSPACE/WORK"

0 commit comments

Comments
 (0)