You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Post deployment webhook is a useful feature in Cloud but its limited to only sending GET requests.
I am exploring the possibility of triggering a GitHub Action workflow via Webhook.
The use case is when Cloud makes an automated upgrade it could send a POST request webhook to GitHub to tell it to grab the latest git patch of the last deployment and create a PR.
"Accept": "application/vnd.github+json"
"Authorization": "token {personal token with repo access}"
The next added complication is differentiating between an automated upgrade and a deployment made by someone like myself. A filter of some kind may be needed to prevent loops.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The Post deployment webhook is a useful feature in Cloud but its limited to only sending GET requests.
I am exploring the possibility of triggering a GitHub Action workflow via Webhook.
The use case is when Cloud makes an automated upgrade it could send a POST request webhook to GitHub to tell it to grab the latest git patch of the last deployment and create a PR.
This is apparently possible with repository_dispatch https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch
This blog post mentions that the following headers are required to set this up: https://kontent.ai/blog/how-to-trigger-github-action-using-webhook-with-no-code/
The next added complication is differentiating between an automated upgrade and a deployment made by someone like myself. A filter of some kind may be needed to prevent loops.
Beta Was this translation helpful? Give feedback.
All reactions