From 5cb3e8353f95fb9f4db23e6205b0a12eaa8c8470 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Fri, 30 Aug 2024 18:58:57 +0200 Subject: [PATCH] reverse the if statement --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 40c7e77..d1446c8 100644 --- a/action.yml +++ b/action.yml @@ -8,7 +8,7 @@ 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" @@ -16,4 +16,4 @@ runs: # 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 }}"