Skip to content

fiberplane/sync-templates

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sync-templates

Continuous Integration

The fiberplane/sync-templates action is a utility that syncs your Fiberplane Templates from a designated directory in your repository with your Fiberplane Workspace.

Usage

This action can be run on ubuntu-latest and macos-latest GitHub Actions runners.

A minimum working example of the action:

steps:
- uses: fiberplane/sync-templates@v1
  with:
    api-token: ${{ secrets.FP_TOKEN }} # it is best practice to keep your secrets in GitHub Secrets
    workspace-id: <your_workspace_id> # you can look it up with: fp workspaces list

The sync-templates action accepts the following inputs:

  • api-token (required) - the Fiberplane API token used to access the workspace
  • workspace-id (required) - the ID of the workspace where the Templates should be sync'ed to
  • templates-directory (optional) - directory where valid Templates *.jsonnet files are located, default: .fiberplane/templates/
  • fp-version (optional) - explicit version of the fp CLI that should be used in the action, default: latest
  • fp-base-url(optional) - the base URL of the Fiberplane API, default studio.fiberplane.com

When run the action will:

  1. Download, setup, and cache the Deno runtime and the Fiberplane CLI (fp).
  2. Validate that the intended Templates are syntactically correct.
  3. Create and/or upload the intended Templates to a Fiberplane Workspace