Skip to content

Commit

Permalink
ci: fix github workflow for example 1
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed May 16, 2023
1 parent 10754a4 commit ac20bc1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/example-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
with:
python-version: '3.10'
- id: latch
uses: fulcrumgenomics/setup-latch@v1
uses: ./
- run: echo latch version ${{ steps.latch.outputs.latch-version }}
shell: bash
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ By default, this action will setup ssh config in `~/.ssh/config` for `latch` com

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).
See https://console.latch.bio/settings/developer.

Finally, the `latch` package is installed.

Expand Down
6 changes: 3 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ runs:
if: ${{ inputs.register }} == 'true'
run: |
eval `ssh-agent -s`
args=${{ inputs.register-pkg-root }}
if [ ${{ inputs.register-remote }} == "true" ]; then
args="${{ inputs.register-pkg-root }}"
if [ "${{ inputs.register-remote }}" == "true" ]; then
args="--remote ${args}"
fi
if [ ${{ inputs.register-register-disable-auto-version }} == "true" ]; then
if [ "${{ inputs.register-register-disable-auto-version }}" == "true" ]; then
args="--register-disable-auto-version ${args}"
fi
latch register --yes ${args}
Expand Down

0 comments on commit ac20bc1

Please sign in to comment.