Skip to content

Commit

Permalink
Merge pull request #45 from konifar/add_environment_check
Browse files Browse the repository at this point in the history
check environment exists
  • Loading branch information
matt-ball authored Dec 14, 2021
2 parents 573e42a + ed3056f commit d2b5df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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.')
}
Expand Down

0 comments on commit d2b5df6

Please sign in to comment.