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');