From 8313c7596798a41a6991c70de27b1bd80ab93246 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 25 Aug 2021 05:10:13 +0000 Subject: [PATCH] chore(release): 1.0.4 [skip ci] ## [1.0.4](https://github.com/scribd/amazon-ecs-service-action/compare/v1.0.3...v1.0.4) (2021-08-25) ### Bug Fixes * remove appendix functionality for tags. ([131da9e](https://github.com/scribd/amazon-ecs-service-action/commit/131da9e3a10fac1d1c749725b29beec2c6055b1e)) * spec and spec-file inputs are properly handled ([ec0f91b](https://github.com/scribd/amazon-ecs-service-action/commit/ec0f91b2eb71bb7599882c383752a61420141f74)) --- CHANGELOG.md | 8 ++++++++ dist/index.js | 24 +++++++++--------------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f5055f..f7184a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [1.0.4](https://github.com/scribd/amazon-ecs-service-action/compare/v1.0.3...v1.0.4) (2021-08-25) + + +### Bug Fixes + +* remove appendix functionality for tags. ([131da9e](https://github.com/scribd/amazon-ecs-service-action/commit/131da9e3a10fac1d1c749725b29beec2c6055b1e)) +* spec and spec-file inputs are properly handled ([ec0f91b](https://github.com/scribd/amazon-ecs-service-action/commit/ec0f91b2eb71bb7599882c383752a61420141f74)) + ## [1.0.3](https://github.com/scribd/amazon-ecs-service-action/compare/v1.0.2...v1.0.3) (2021-08-25) diff --git a/dist/index.js b/dist/index.js index 3c14037..cc184a3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -592,22 +592,16 @@ function getParameters() { Object.assign(parameters, {spec: specFileData}); } - // JSON Parameters - Object.entries({ - spec: 'spec', - tags: 'tags', - }).forEach(([key, value]) => { - const s = core.getInput(value, {required: false}); - if (s) { - let t; - try { - t = JSON.parse(s); - } catch (err) { - throw handleGetParameterErrors(err, key, s); - } - Object.assign(parameters, {[key]: t}); + spec = core.getInput('spec', {required: false}); + if (spec) { + let specData; + try { + specData = JSON.parse(spec); + } catch (err) { + throw handleGetParameterErrors(err, 'spec', spec); } - }); + Object.assign(parameters, {spec: Object.assign({}, parameters.spec, specData)}); + } const filteredParams = _.pickBy( parameters,