discord-webhook icon indicating copy to clipboard operation
discord-webhook copied to clipboard

any examples to get events from github?

Open rildomar opened this issue 3 years ago • 1 comments

if i use the raw-data, how i can change the custom message with the github username for example?

rildomar avatar Jun 25 '22 04:06 rildomar

You can make a custom step in your action to use sed or jq to replace the value with the input.

For jq, it would be something like jq '.username= ${{ github.triggering_actor }}' file.json > file.json (I haven't tested that, but it should be the general idea)

I'm curious about your raw data use case, are you using a webhook template from your project that wouldn't translate well to the action inputs?

tsickert avatar Aug 21 '22 20:08 tsickert