The guide shows how you can use Azure Function as an intermediate service to enable Databricks Model Registry to trigger a GitHub Actions workflow
- Clone this repo and deploy to Azure Function. You can Read this tutorial to get started with Azure Function.
- Modify the code in
HttpExample/__init__py
to specify the trigger API call for GitHub Actions. - Configure a webhook in databricks to trigger the HTTP URL of your function app. Please make sure that you append your function name at the end of the URL (
HttpExample
for this repo). The complete URL will look something like this:https://{FUNCTION_APP_NAME}.net/api/HttpExample
- [optional] Add authentication to your Azure Function. You can follow this guide to configure authentication for Azure Function.
- Create a GitHub actions workflow that is triggerable by API. You can read more on it here. This repo contains a sample workflow in
.github
folder that posts a comment to model registrY on recieving the webhook.