From f65a32877c14bd2ee187167d805902f5a8ce9c74 Mon Sep 17 00:00:00 2001 From: Tere <teresa@okteto.com> Date: Wed, 12 Jun 2024 14:12:11 +0200 Subject: [PATCH] refactor: change default value for scope input to global (#57) Signed-off-by: Teresa Romero <teresa@okteto.com> --- README.md | 2 +- action.yml | 4 ++-- entrypoint.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e0bdfd1..3292e40 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ The length of time to wait for completion. Values should contain a corresponding ### `scope` -The scope of the Okteto preview environment to create (defaults to `personal`). +The scope of the Okteto preview environment to create. Allowed values are `personal` or `global` (defaults to `global`). ### `variables` diff --git a/action.yml b/action.yml index d99d6f7..2cf500d 100644 --- a/action.yml +++ b/action.yml @@ -8,9 +8,9 @@ inputs: description: 'The length of time to wait for completion, zero means never. Any other values should contain a corresponding time unit e.g. 1s, 2m, 3h (default 5m0s)' required: false scope: - description: "The scope of preview env to create" + description: "The scope of preview env to create. Allowed values are: personal or global. Defaults to global." required: false - default: "personal" + default: "global" variables: description: 'Variables to be used by the pipeline. If several variables are present, they should be separated by commas e.g. VAR1=VAL1,VAR2=VAL2,VAR3=VAL3' required: false diff --git a/entrypoint.sh b/entrypoint.sh index 0e4c8ef..355b0ea 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,7 +15,7 @@ if [ -z $name ]; then fi if [ -z $scope ]; then - scope=personal + scope=global fi if [ ! -z "$OKTETO_CA_CERT" ]; then