Skip to content

Commit

Permalink
chore(release): 1.0.4 [skip ci]
Browse files Browse the repository at this point in the history
## [1.0.4](v1.0.3...v1.0.4) (2021-08-25)

### Bug Fixes

* remove appendix functionality for tags. ([131da9e](131da9e))
* spec and spec-file inputs are properly handled ([ec0f91b](ec0f91b))
  • Loading branch information
semantic-release-bot committed Aug 25, 2021
1 parent 5214215 commit 8313c75
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
24 changes: 9 additions & 15 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8313c75

Please sign in to comment.