Skip to content

Commit ccb2a48

Browse files
authored
Update doc-build.yml
1 parent 662cc2f commit ccb2a48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/doc-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ jobs:
6969
cd ..
7070
7171
# If it's main branch, add noindex tag to all .html files to exclude from Google Search indexing.
72-
echo "Ref name: ${REF_NAME}"
72+
GITHUB_REF=${{ github.ref }}
73+
echo "GitHub Ref: ${GITHUB_REF}"
7374
if [[ "${{ github.ref }}" == 'refs/heads/main' ]]; then
7475
find docs/_build/html/ -name "*.html" -print0 | xargs -0 sed -i '/<head>/a \ \ <meta name="robots" content="noindex">';
7576
fi

0 commit comments

Comments
 (0)