Webhook: Document passing string argument to run command

Created on 12 Aug 2020  路  4Comments  路  Source: adnanh/webhook

How can I pass arguments to the command being run?

Normally the command I write is sh deploy.sh production, but it doesn't work if I append "production" to the command.

It will return: deploy.sh production: no such file or directory

documentation help wanted

All 4 comments

I tried with this:

"pass-arguments-to-command": [
    {
        "source": "string",
        "name": "production"
    }
]

and it seems to do the trick - not sure though - had to look through the /test/ folder of the repository.

To answer your comment, since you closed the issue:


@simplenotezy,
In the future, please don't comment on issues that were closed years ago. Open a new issue.

To answer your question, see the Github example at https://github.com/adnanh/webhook/blob/master/docs/Hook-Examples.md#incoming-github-webhook

__Originally posted by @moorereason in https://github.com/adnanh/webhook/pull/164#issuecomment-672936985__

The doc you are referring to does indicate a lot of great examples, except for the most simple one, where the argument is simply passed without being part of payload or query string. That's what I meant was missing.

You're right. We need better reference documentation that explains each object and the possible attributes and values associated with those objects.

Fixed in #489

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndrewSav picture AndrewSav  路  6Comments

dcj picture dcj  路  5Comments

zoenglinghou picture zoenglinghou  路  4Comments

avtar picture avtar  路  6Comments

pascalandy picture pascalandy  路  4Comments