diff --git a/action.yml b/action.yml index 8332ad1..fdea4f0 100644 --- a/action.yml +++ b/action.yml @@ -53,13 +53,13 @@ runs: - name: Configure Kubeconfig shell: bash run: | - if [ [ -n ${{ inputs.kubeconfig }} ] && [ ${{ inputs.kubeconfig }} != "" ] ]; then + if [ -n "${{ inputs.kubeconfig }}" ] && [ "${{ inputs.kubeconfig }}" != "" ]; then echo "Using Provided Kubernetes Config" echo OASIS_WORKFLOW_KUBECONFIG=${{ inputs.kubeconfig }} >> $GITHUB_ENV - elif [ ${{ inputs.deploy-env }} == "edge" ]; then + elif [ "${{ inputs.deploy-env }}" == "edge" ]; then echo "Using Edge Kubernetes Config" echo OASIS_WORKFLOW_KUBECONFIG=${{env.KUBERNETES_CONFIG_USW_EDGE}} >> $GITHUB_ENV - elif [ ${{ inputs.deploy-env }} == "ci" ]; then + elif [ "${{ inputs.deploy-env }}" == "ci" ]; then echo "Using Dev Kubernetes Config" echo OASIS_WORKFLOW_KUBECONFIG=${{env.KUBERNETES_CONFIG_USW_DEV}} >> $GITHUB_ENV else