GitHub
Integrating Hava with GitHub using Actions
Last updated
Was this helpful?
Integrating Hava with GitHub using Actions
Last updated
Was this helpful?
Hava has published an Action to make it easier to integrate Hava with a CI/CD pipeline. It allows you trigger a synchronization of one of your sources as part of your workflow execution, and optionally export a PNG image of the updated environment that can be committed to your documents folder to keep it up to date and in sync with your code changes.
The latest version of hava-sync-action
can be found on the .
To use the action as part of your workflow, you need to create a step in your job like below
This is a minimal setup for the action, details on all the settings can be found in the and our .
You can also see an implementation of the action in our .
The action requires a few configuration values that you need to know before you implement this in your own repository: The ID of the source you are synchronizing, the ID of the environment you are exporting an image of, and a token to access the Hava API
There are two main ways to get the ID of a source, you can either use the API to get a list of all sources and their ID, or you can use the search bar in the Hava app
When you search using the source:
key in the Hava application it will list all the available options for you like in the below screenshot. Select the source you are looking for and the ID will be added to the search query. You can now copy this and use it in your workflow
The environment ID is available as part of the URL when you click on an environment in the Hava application. Copy the the portion of the URL that is highlighted below, it's a UUID.
To generate a new API token, follow the guide in our .
The Hava API has a /source endpoint that can be accessed on https://api.hava.io/sources
to get the list. See our for more detail