Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concatenate parameters in command line #336

Open
HugoDelval opened this issue Sep 5, 2019 · 1 comment
Open

Concatenate parameters in command line #336

HugoDelval opened this issue Sep 5, 2019 · 1 comment

Comments

@HugoDelval
Copy link

HugoDelval commented Sep 5, 2019

Hi there,

this is more a question than an issue, but maybe if this doesn't exist it could be a feature request?

I'd like to call an external command with parameters constructed out of the JSON payload. An example would be this command:

/bin/echo TADA_${MY_VAR_FROM_PAYLOAD}

Is there a way of doing this only by using webhook? Or should I create a custom bash script which constructs the command (it would be a shame IMHO)

Thanks for the response and for the awesome project!

@adnanh
Copy link
Owner

adnanh commented Oct 12, 2019

Hi, at the moment of writing this, webhook can extract the variable from payload and pass it as an argument or via ENV variable to your script, but you still need to write a custom bash script which would construct and execute the command.

In the next major version I'm going to implement a context-aware expression system which would allow you to create dynamic settings based on the incoming payload (context) like the one you need.

Unfortunately, I can't give you an ETA :-(

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

No branches or pull requests

3 participants