Skip to content

Commit

Permalink
reverse the if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Aug 30, 2024
1 parent ccd0ec6 commit 5cb3e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ inputs:
required: true
environment:
description: "Environment to run the command in. If not specified it will try to find local Flox environment."
default: ""
default: null

runs:
using: "composite"
steps:
# TODO: automatically login to floxhub if not logged in already and FLOX_TOKEN is present
- name: "Run flox activate"
shell: "bash"
run: "flox activate ${{ inputs.environment == '' && '' || format('--remote={0}', inputs.environment) }} -- ${{ inputs.command }}"
run: "flox activate ${{ inputs.environment != null && format('--remote={0}', inputs.environment) || '' }} -- ${{ inputs.command }}"

0 comments on commit 5cb3e83

Please sign in to comment.