diff --git a/README.md b/README.md index 6f14f83..5ec6668 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you have an existing `fly.toml` in your repo, this action will copy it with a | `path` | Path to run the `flyctl` commands from. Useful if you have an existing `fly.toml` in a subdirectory. | | `postgres` | Optional name of an existing Postgres cluster to `flyctl postgres attach` to. | | `update` | Whether or not to update this Fly app when the PR is updated. Default `true`. | -| `secrets` | Secrets to be set on the app at runtime. Separate multiple secrets with a space | +| `secrets` | Secrets to be set on the app at runtime. Separate multiple secrets with a new line | | `build_args` | Optional Docker --build-arg | | `build_secrets` | Optional Docker --build-secret | | `vmsize` | Set app VM to a named size, eg. shared-cpu-1x, dedicated-cpu-1x, dedicated-cpu-2x etc. Takes precedence over cpu, cpu kind, and memory inputs. | diff --git a/action.yml b/action.yml index 93f7ad2..da048dd 100644 --- a/action.yml +++ b/action.yml @@ -27,7 +27,7 @@ inputs: postgres: description: Optionally attach the app to a pre-existing Postgres cluster on Fly secrets: - description: Secrets to be set on the app at runtime. Separate multiple secrets with a space + description: Secrets to be set on the app at runtime. Separate multiple secrets with a new line vmsize: description: Set app VM to a named size, eg. shared-cpu-1x, dedicated-cpu-1x, dedicated-cpu-2x etc. Takes precedence over cpu, cpu kind, and memory inputs. cpu: diff --git a/entrypoint.sh b/entrypoint.sh index f16a75c..4a3bcec 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -60,7 +60,7 @@ if ! flyctl status --app "$app"; then fi if [ -n "$INPUT_SECRETS" ]; then - echo $INPUT_SECRETS | tr " " "\n" | flyctl secrets import --app "$app" + echo $INPUT_SECRETS | flyctl secrets import --app "$app" fi # Attach postgres cluster to the app if specified.