mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-07 19:35:38 -05:00
[Feature] Allow parameters in actions / procedures #1265
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @falnos24865 on GitHub (Jul 5, 2025).
The primary issue I have using actions is that you cannot pass in different values at run time. This limits the scope of what they can do. For example I would like to have an action that allows a user to deploy a chosen branch to a test site. Right now this cannot be done (without version clunky workarounds using variables, and that does not scale well).
@mbecker20 commented on GitHub (Aug 30, 2025):
Since 1.19.0, Actions can take args, available to use in the script as
ARGS. I still need to document this, so here is an example:Then in Procedures, you are able to configure the args to pass.
You can also pass them when calling the Action with
kmCLI:km run action <name> "REPO=<repo-name>"Let me know if you have any thoughts
@Manuki-San commented on GitHub (Feb 13, 2026):
I have a similar request: the ability to pass a parameter in the body of a procedure webhook (e.g., via the GitLab Listener) and have that value injected into the args or body object of the script actions. Currently, using global variables as a workaround creates significant race conditions in a monorepo setup where multiple stacks are triggered simultaneously.
Example