Skip to content

How can I trigger a Github Action with the afterChange hook? - HTTP webhooks? #1942

Answered by denolfe
gianpaj asked this question in Q&A
Discussion options

You must be logged in to vote

All configuration is typically done in the payload config and/or an .env file. This is where you would configure the URL and any other values.

For GitHub API, the way to interact programmatically would be to use Octokit. So within your hook, you would instantiate Octokit, then use whatever methods they have available - likely something to do with a workflow run.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gianpaj
Comment options

Answer selected by zubricks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants