Skip to content

Commit

Permalink
is "" a better default
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Aug 30, 2024
1 parent 3214a02 commit ccd0ec6
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: null
default: ""

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 == null && '' || format('--remote={0}', inputs.environment) }} -- ${{ inputs.command }}"
run: "flox activate ${{ inputs.environment == '' && '' || format('--remote={0}', inputs.environment) }} -- ${{ inputs.command }}"

0 comments on commit ccd0ec6

Please sign in to comment.