Fixed actions
Build and publish / build (push) Failing after 14s

This commit is contained in:
Lino Silva
2024-10-14 23:11:51 +01:00
parent b4c37b218a
commit 59f6f90664
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -13,6 +13,8 @@ jobs:
uses: https://github.com/actions/setup-node@v3
with:
node-version: '20.18'
- run: apt-get install chromium-browser
name: Install chromium
- run: npm i
name: Install dependencies
- run: node index.mjs
+3 -1
View File
@@ -16,7 +16,9 @@ const contas = {
async function parseLogRocketBlogHome(conta) {
// Launch the browser
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
executablePath: "/usr/bin/chromium-browser",
});
// Open a new tab
const page = await browser.newPage();