From 3bda078f3c72e53195765c066ff152b8db404e43 Mon Sep 17 00:00:00 2001 From: Matt Ball Date: Mon, 20 Dec 2021 12:09:53 -0800 Subject: [PATCH] 1.0.4 --- dist/index.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 3c587c6d..e21ddfda 100644 --- a/dist/index.js +++ b/dist/index.js @@ -254251,7 +254251,7 @@ async function init () { options.collection = `${apiBase}/collections/${options.collection}?apikey=${options.apiKey}` } - if (options.environment.match(idRegex)) { + if (options.environment && options.environment.match(idRegex)) { if (!options.apiKey) { core.setFailed('No Postman API key provided for environment retrieval.') } diff --git a/package-lock.json b/package-lock.json index 297ca2f9..5d857b75 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "newman-action", - "version": "1.0.3", + "version": "1.0.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index bc061786..73edd230 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "newman-action", - "version": "1.0.3", + "version": "1.0.4", "description": "Run Postman collections with Newman as a GitHub Action", "main": "dist/index.js", "repository": {