diff --git a/.github/workflows/jsdoc.yml b/.github/workflows/jsdoc.yml index e36db60dd..3763c7841 100644 --- a/.github/workflows/jsdoc.yml +++ b/.github/workflows/jsdoc.yml @@ -40,7 +40,7 @@ jobs: cp -a "$RUNNER_TEMP/$VERSION" . # Add the new directory to the index if it isn't there already - if ! grep -q "Version $VERSION" index.html; then + if ! grep -q ">Version $VERSION" index.html; then perl -i -pe 'BEGIN {$rel=shift} $_ =~ /^<\/ul>/ && print "
  • Version ${rel}
  • \n"' "$VERSION" index.html fi