From 80583a0da8aed3c29c65efeb8722479e0ed22867 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 19 Jun 2023 00:09:04 +0530 Subject: [PATCH] Fixed script termination issue --- .github/workflows/alert.yml | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/alert.yml b/.github/workflows/alert.yml index a2c2e3b..8e5675c 100644 --- a/.github/workflows/alert.yml +++ b/.github/workflows/alert.yml @@ -2,7 +2,7 @@ name: Sentinel Alerts on: schedule: - - cron: '* */4 * * *' + - cron: '0 0 * * *' jobs: build: diff --git a/src/index.js b/src/index.js index 08ae140..280e789 100644 --- a/src/index.js +++ b/src/index.js @@ -56,6 +56,6 @@ const pages = process.env.SENTINEL_PAGE_CONFIG ? JSON.parse(process.env.SENTINEL `, }); } - await pipeline.exec(); + process.exit(0); })();