From b439faee1ab14758dfeffbc0e9f32d7c1613dd3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Titsworth-Morin?= Date: Wed, 21 Jan 2026 19:53:52 +0100 Subject: [PATCH] Update provider input description and remove default value; enhance environment variable setting logic --- action.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yaml b/action.yaml index 423498a..8f202b3 100644 --- a/action.yaml +++ b/action.yaml @@ -35,9 +35,9 @@ inputs: required: false default: "" provider: - description: "The cloud provider to deploy to. Options: 'aws', 'defang', 'digitalocean', 'gcp'" + description: "The cloud provider to deploy to. Options: 'aws', 'defang', 'digitalocean', 'gcp'. If not specified, the CLI will determine the appropriate provider." required: false - default: "defang" + default: "" verbose: description: "Enable verbose output for debugging." required: false @@ -56,7 +56,7 @@ runs: - name: Set Defang environment variables shell: bash run: | - echo "DEFANG_PROVIDER=${{ inputs['provider'] }}" >> $GITHUB_ENV + [ -n "${{ inputs['provider'] }}" ] && echo "DEFANG_PROVIDER=${{ inputs['provider'] }}" >> $GITHUB_ENV || true [ -n "$RUNNER_DEBUG" ] && echo "DEFANG_DEBUG=$RUNNER_DEBUG" >> $GITHUB_ENV || true [ -n "${{ inputs['stack'] }}" ] && echo "DEFANG_STACK=${{ inputs['stack'] }}" >> $GITHUB_ENV || true