kiegroup / act-js

A node.js wrapper for nektos/act to programmatically run your github actions locally
Apache License 2.0
54 stars 9 forks source link

fix: allow selective override of keys in `inputs` field in the workflow file when using `setInput` #64

Closed im-sampm closed 8 months ago

im-sampm commented 9 months ago

When triggering a workflow_dispatch event, the event payload must contain the inputs key.

However, this key is always overwritten as the code is currently written.

This change allows the simultaneous use of act.setInput() and passing an event payload containing an inputs key.

shubhbapna commented 8 months ago

Tested this locally and doesn't seem to break anything. Moreover since the change is quite small, I think just by looking at it, it shouldn't break anything. I will go ahead and merge it.