We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 662cc2f commit ccb2a48Copy full SHA for ccb2a48
.github/workflows/doc-build.yml
@@ -69,7 +69,8 @@ jobs:
69
cd ..
70
71
# If it's main branch, add noindex tag to all .html files to exclude from Google Search indexing.
72
- echo "Ref name: ${REF_NAME}"
+ GITHUB_REF=${{ github.ref }}
73
+ echo "GitHub Ref: ${GITHUB_REF}"
74
if [[ "${{ github.ref }}" == 'refs/heads/main' ]]; then
75
find docs/_build/html/ -name "*.html" -print0 | xargs -0 sed -i '/<head>/a \ \ <meta name="robots" content="noindex">';
76
fi
0 commit comments