From 59f6f906648c403d4d781c572ac27a16fcb7802e Mon Sep 17 00:00:00 2001 From: Lino Silva Date: Mon, 14 Oct 2024 23:11:51 +0100 Subject: [PATCH] Fixed actions --- .gitea/workflows/sync-prices.yaml | 2 ++ index.mjs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/sync-prices.yaml b/.gitea/workflows/sync-prices.yaml index bb5696c..24db9d3 100644 --- a/.gitea/workflows/sync-prices.yaml +++ b/.gitea/workflows/sync-prices.yaml @@ -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 diff --git a/index.mjs b/index.mjs index 53b173b..5a622d0 100644 --- a/index.mjs +++ b/index.mjs @@ -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();