You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
added "comma-seperated" the description for `env_vars`
This is important when using the literal block scalar `|` with a
variable `${{<variable name>}}`, as entries are not parsed separately
unless they are comma-seperated (newlines aren't enough)
example:
```
- id: "deploy"
uses: "google-github-actions/deploy-cloud-functions@v2"
with:
name: "function_name"
entry_point: "main"
runtime: "python311"
memory_mb: "8192MB"
env_vars: |
FOO=${{ env.PROJECT_NAME }}
BAR=BAZ
source_dir: ...
```
sets one environment variable `FOO` as `<project_name>\nBAR=BAZ`
Signed-off-by: jehan60188 <21280121+jehan60188@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ jobs:
67
67
68
68
- `region`: (Optional) [Region](https://cloud.google.com/functions/docs/locations) in which the function should be deployed. Defaults to `us-central1`.
69
69
70
-
- `env_vars`: (Optional) List of key-value pairs to set as environment variables in the format: `KEY1=VALUE1,KEY2=VALUE2`. All existing environment variables will be removed, even if this parameter is not passed. Keys or values that contain a separator must be escaped with a backslash (`\,`, `\\n`). All leading and trailing whitespace is trimmed.
70
+
- `env_vars`: (Optional) List of comma-seperated key-value pairs to set as environment variables in the format: `KEY1=VALUE1,KEY2=VALUE2`. All existing environment variables will be removed, even if this parameter is not passed. Keys or values that contain a separator must be escaped with a backslash (`\,`, `\\n`). All leading and trailing whitespace is trimmed.
71
71
72
72
- `env_vars_file`: (Optional) Path to a local YAML file with definitions for all environment variables. An example env_vars_file can be found [here](tests/env-var-files/test.good.yaml). All existing environment variables will be removed, even if this parameter is not passed. If `env_vars` is also given, values in `env_vars` take precedence over these values.
0 commit comments