From ccd0ec63cd2813b945a76c3e229ecc481afbd046 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Fri, 30 Aug 2024 18:56:30 +0200 Subject: [PATCH] is "" a better default --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 716721a..40c7e77 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: null + default: "" 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 == null && '' || format('--remote={0}', inputs.environment) }} -- ${{ inputs.command }}" + run: "flox activate ${{ inputs.environment == '' && '' || format('--remote={0}', inputs.environment) }} -- ${{ inputs.command }}"