Skip to content

Commit

Permalink
refactor: change default value for scope input to global (#57)
Browse files Browse the repository at this point in the history
Signed-off-by: Teresa Romero <[email protected]>
  • Loading branch information
teresaromero committed Jun 12, 2024
1 parent aa0c48d commit f65a328
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ -z $name ]; then
fi

if [ -z $scope ]; then
scope=personal
scope=global
fi

if [ ! -z "$OKTETO_CA_CERT" ]; then
Expand Down

0 comments on commit f65a328

Please sign in to comment.