@@ -74,9 +74,11 @@ inputs:
7474 `\\n`) unless quoted. Any leading or trailing whitespace is trimmed unless
7575 values are quoted.
7676
77- env_vars: |-
78- FRUIT=apple
79- SENTENCE=" this will retain leading and trailing spaces "
77+ ```yaml
78+ env_vars: |-
79+ FRUIT=apple
80+ SENTENCE=" this will retain leading and trailing spaces "
81+ ```
8082
8183 This value will only be set if the input is a non-empty value. If a
8284 non-empty value is given, the field values will be overwritten (not
@@ -86,27 +88,6 @@ inputs:
8688 `env_vars` will take precedence over the keys in `env_vars_file`.
8789 required : false
8890
89- env_vars_file :
90- description : |-
91- Path to a file on disk, relative to the workspace, that defines
92- environment variables. The file can be newline-separated KEY=VALUE pairs,
93- JSON, or YAML format. If both `env_vars` and `env_vars_file` are
94- specified, the keys in env_vars will take precedence over the keys in
95- env_vars_file.
96-
97- NAME=person
98- 99-
100- When specified as KEY=VALUE pairs, the same escaping rules apply as
101- described in `env_vars`. You do not have to escape YAML or JSON.
102-
103- If both `env_vars` and `env_vars_file` are specified, the keys in
104- `env_vars` will take precedence over the keys in `env_vars_file`.
105-
106- **⚠️ DEPRECATION NOTICE:** This input is deprecated and will be removed in
107- the next major version release.
108- required : false
109-
11091 env_vars_update_strategy :
11192 description : |-
11293 Controls how the environment variables are set on the Cloud Run service.
@@ -128,13 +109,15 @@ inputs:
128109 volumes. Keys starting with a forward slash '/' are mount paths. All other
129110 keys correspond to environment variables:
130111
131- with:
132- secrets: |-
133- # As an environment variable:
134- KEY1=secret-key-1:latest
112+ ```yaml
113+ with:
114+ secrets: |-
115+ # As an environment variable:
116+ KEY1=secret-key-1:latest
135117
136- # As a volume mount:
137- /secrets/api/key=secret-key-2:latest
118+ # As a volume mount:
119+ /secrets/api/key=secret-key-2:latest
120+ ```
138121
139122 This value will only be set if the input is a non-empty value. If a
140123 non-empty value is given, the field values will be overwritten (not
@@ -159,9 +142,11 @@ inputs:
159142 unless quoted. Any leading or trailing whitespace is trimmed unless values
160143 are quoted.
161144
162- labels: |-
163- labela=my-label
164- labelb=my-other-label
145+ ```yaml
146+ labels: |-
147+ labela=my-label
148+ labelb=my-other-label
149+ ```
165150
166151 This value will only be set if the input is a non-empty value. If a
167152 non-empty value is given, the field values will be overwritten (not
@@ -204,14 +189,18 @@ inputs:
204189 `gcloud run deploy`. For Cloud Run jobs, this command will be `gcloud jobs
205190 deploy`.
206191
207- with:
208- flags: '--add-cloudsql-instances=...'
192+ ```yaml
193+ with:
194+ flags: '--add-cloudsql-instances=...'
195+ ```
209196
210197 Flags that include other flags must quote the _entire_ outer flag value. For
211198 example, to pass `--args=-X=123`:
212199
213- with:
214- flags: '--add-cloudsql-instances=... "--args=-X=123"'
200+ ```yaml
201+ with:
202+ flags: '--add-cloudsql-instances=... "--args=-X=123"'
203+ ```
215204
216205 See the [complete list of
217206 flags](https://cloud.google.com/sdk/gcloud/reference/run/deploy#FLAGS) for
@@ -240,13 +229,17 @@ inputs:
240229 description : |-
241230 Comma-separated list of revision traffic assignments.
242231
243- with:
244- revision_traffic: 'my-revision=10' # percentage
232+ ```yaml
233+ with:
234+ revision_traffic: 'my-revision=10' # percentage
235+ ```
245236
246237 To update traffic to the latest revision, use the special tag "LATEST":
247238
248- with:
249- revision_traffic: 'LATEST=100'
239+ ```yaml
240+ with:
241+ revision_traffic: 'LATEST=100'
242+ ```
250243
251244 This is mutually-exclusive with `tag_traffic`. This option only applies
252245 to services.
@@ -256,8 +249,10 @@ inputs:
256249 description : |-
257250 Comma-separated list of tag traffic assignments.
258251
259- with:
260- tag_traffic: 'my-tag=10' # percentage
252+ ```yaml
253+ with:
254+ tag_traffic: 'my-tag=10' # percentage
255+ ```
261256
262257 This is mutually-exclusive with `revision_traffic`. This option only
263258 applies to services.
@@ -270,14 +265,18 @@ inputs:
270265 features that are not exposed via this GitHub Action. This flag only
271266 applies when `revision_traffic` or `tag_traffic` is set.
272267
273- with:
274- traffic_flags: '--set-tags=...'
268+ ```yaml
269+ with:
270+ traffic_flags: '--set-tags=...'
271+ ```
275272
276273 Flags that include other flags must quote the _entire_ outer flag value. For
277274 example, to pass `--args=-X=123`:
278275
279- with:
280- flags: '--set-tags=... "--args=-X=123"'
276+ ```yaml
277+ with:
278+ flags: '--set-tags=... "--args=-X=123"'
279+ ```
281280
282281 See the [complete list of
283282 flags](https://cloud.google.com/sdk/gcloud/reference/run/services/update#FLAGS)
@@ -321,5 +320,5 @@ branding:
321320 color : ' blue'
322321
323322runs :
324- using : ' node20 '
323+ using : ' node24 '
325324 main : ' dist/main/index.js'
0 commit comments