Skip to content

Use a Github action to update a feature flag in a specific Split Environment. This is an example of using Split's Admin APIs to implement Configuration as Code (CaC

Notifications You must be signed in to change notification settings

Split-Community/example-config-as-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example-config-as-code

Use a Github action to update a feature flag in a specific Split Environment. This is an example of using Split's Admin APIs to implement Configuration as Code (CaC)

Edit the file flag_managed_by_github.json and the flag definition will be updated.

You can use the YAML github action in your own repository, or modify to suit your needs.

The YAML file uses the Full update of flag definition in environment API to replace the existing feature flag definition with the one from the JSON file.

The filename is used to define the name of the feature flag, and secrets are used for the Admin API Key, environment id and workspace ID.

The flag definition can be refreshed using the Get Feature Flag Definition in Environment API to pull flag definitions down.

Flag definition

image

Targeting Rules updated

image

About

Use a Github action to update a feature flag in a specific Split Environment. This is an example of using Split's Admin APIs to implement Configuration as Code (CaC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published