Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Setup Latch

Actions
Set up Latch SDK
v1.0.2
Star (5)

Tags

 (1)

fulcrumgenomics/setup-latch

This action sets up the latch CLI and SDK. Visit https://docs.latch.bio to learn more about latch.

By default, this action will setup ssh config in ~/.ssh/config for latch commands that require ssh by disabling strict host key checking (StrictHostKeyChecking No for all hosts in the ~/.ssh/config).

The action will optional add the provided latch workspace identifier and token to ~/.latch/workspace and ~/.latch/token files respectively. This is used when registering your local workflow code to Latch (see the register* inputs).

Finally, the latch package is installed.

Inputs and outputs

For a full list of available inputs and outputs for this action see action.yml.

Usage example

Example 1: Basic usage

This example shows how to install the latest version of latch and echo the version installed.

jobs:
  setup-latch-job:
    runs-on: ubuntu-latest
    name: A job to setup latch
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v4
        with:
          python-version: '3.10'
      - id: latch
        uses: fulcrumgenomics/setup-latch@v1
      - run: echo latch version ${{ steps.latch.outputs.latch-version }}
        shell: bash

Example 2: Register your local workflow code to Latch

This example shows how to register your local workflow code to Latch. The workspace and token are required and accept the workspace identifier and developer token respectively. In this example, they are stored as encrypted secrets.

jobs:
  setup-latch-job:
    runs-on: ubuntu-latest
    name: A job to setup latch
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v4
        with:
          python-version: '3.10'
      - id: latch
        uses: fulcrumgenomics/setup-latch@v1
        with:
            workspace: ${{ secrets.LATCH_WORKSPACE }}
            token: ${{ secrets.LATCH_TOKEN }}
            register: true
      - run: echo latch version ${{ steps.latch.outputs.latch-version }}
        shell: bash

Setup Latch is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Set up Latch SDK
v1.0.2

Tags

 (1)

Setup Latch is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.