Skip to content

Conversation

@chaitanyalal18
Copy link
Contributor

This action takes an array of JSON objects as input and returns a single merged JSON object.
If multiple objects contain the same key, their numeric values are added together. If a key exists only in one object, it is carried over as is.

This is useful for combining metrics, inventory counts, or numeric summaries from multiple sources into a single aggregated object.

Example
Input-
[
{ "laptop": 2, "keyboard": 3 },
{ "laptop": 1, "mouse": 4 },
{ "mouse": 2, "keyboard": 1 }
]
Output-
{ "laptop": 3, "keyboard": 4, "mouse": 6 }

@github-actions
Copy link

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@ravichandra1998g ravichandra1998g self-assigned this Oct 23, 2025
@ravichandra1998g
Copy link
Contributor

This Action doesn't have an error evaluation step.

Please add an error evaluation step to handle if the script step fails.

Please reopen/submit a new PR after making the changes

@chaitanyalal18
Copy link
Contributor Author

sure will do that. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants