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

any examples to get events from github? #14

Open
rildomar opened this issue Jun 25, 2022 · 1 comment
Open

any examples to get events from github? #14

rildomar opened this issue Jun 25, 2022 · 1 comment

Comments

@rildomar
Copy link

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

@tsickert
Copy link
Owner

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?

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

No branches or pull requests

2 participants