diff --git a/.github/workflows/seo-report.yaml b/.github/workflows/seo-report.yaml index 7005cf4..bd05874 100644 --- a/.github/workflows/seo-report.yaml +++ b/.github/workflows/seo-report.yaml @@ -33,6 +33,10 @@ jobs: - name: Build Unlighthouse report run: unlighthouse-ci --site "https://omnidash.io" --build-static + - name: Add base href to `index.html` + run: | + node -e "const fs = require('fs'); const file = './.unlighthouse/index.html'; let html = fs.readFileSync(file, 'utf-8'); html = html.replace(/
([\s\S]*?)<\/head>/, (match, headContent) => '' + headContent + '