From 16c2ad569cc4dcba4865edef6eceb8eba04863c8 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 3 May 2021 11:04:07 -0400 Subject: [PATCH] Only run dotenv in dev --- .github/workflows/src/index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index dbdcd73a..8506d6d1 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -1,6 +1,10 @@ -const result = require('dotenv').config(); -if (result.error) { - throw result.error + +if(process.env.GITHUB_ACTIONS) { + const result = require('dotenv').config(); + + if (result.error) { + throw result.error + } } const Airtable = require('airtable'); -- knotmirror 0.0.1