Skip to content

Commit

Permalink
fix: broken seo workflow (#215)
Browse files Browse the repository at this point in the history
just because wrong puppeteer version
  • Loading branch information
OXeu authored Jul 11, 2024
1 parent 5af550b commit cc6611d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ jobs:
RSS_DESCRIPTION: ${{ vars.RSS_DESCRIPTION }}
run: |
cd Rin/
bun install
bun install --frozen-lockfile
bun scripts/migrator.ts
2 changes: 1 addition & 1 deletion .github/workflows/seo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ jobs:
S3_FORCE_PATH_STYLE: ${{ vars.S3_FORCE_PATH_STYLE }}
run: |
cd Rin/
bun i
bun install --frozen-lockfile
bun scripts/render.ts
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"autoprefixer": "^10.4.19",
"i18next-parser": "^9.0.0",
"postcss": "^8.4.38",
"puppeteer": "^22.10.0",
"puppeteer": "^22.13.0",
"tailwindcss": "^3.4.3",
"turbo": "^1.13.3",
"vitest": "1.3.0"
Expand Down
2 changes: 1 addition & 1 deletion scripts/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function fetchPage(url: string) {
const anchors = Array.from(document.querySelectorAll('a'));
return anchors.map(anchor => anchor.href);
});
for (const link of links.filter(link => (link.startsWith(baseUrl) || (containsKey !== '' && link.includes(containsKey))))) {
for (const link of links.filter(link => (link.startsWith(baseUrl) || (containsKey != '' && link.includes(containsKey))))) {
const linkWithoutHash = link.split('#')[0];
if (fetchedLinks.has(linkWithoutHash)) {
continue;
Expand Down

0 comments on commit cc6611d

Please sign in to comment.