Skip to content

Commit e1b1b0b

Browse files
Release: v3.0.0 (#577)
## What's Changed * Bump to Node 24 and remove deprecated fields by @sethvargo in #576 **Full Changelog**: v2.7.5...v3.0.0
1 parent 0271ba2 commit e1b1b0b

File tree

4 files changed

+52
-50
lines changed

4 files changed

+52
-50
lines changed

README.md

Lines changed: 46 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ jobs:
9191
`\\n`) unless quoted. Any leading or trailing whitespace is trimmed unless
9292
values are quoted.
9393

94-
env_vars: |-
95-
FRUIT=apple
96-
SENTENCE=" this will retain leading and trailing spaces "
94+
```yaml
95+
env_vars: |-
96+
FRUIT=apple
97+
SENTENCE=" this will retain leading and trailing spaces "
98+
```
9799

98100
This value will only be set if the input is a non-empty value. If a
99101
non-empty value is given, the field values will be overwritten (not
@@ -102,24 +104,6 @@ jobs:
102104
If both `env_vars` and `env_vars_file` are specified, the keys in
103105
`env_vars` will take precedence over the keys in `env_vars_file`.
104106

105-
- <a name="__input_env_vars_file"></a><a href="#user-content-__input_env_vars_file"><code>env_vars_file</code></a>: _(Optional)_ Path to a file on disk, relative to the workspace, that defines
106-
environment variables. The file can be newline-separated KEY=VALUE pairs,
107-
JSON, or YAML format. If both `env_vars` and `env_vars_file` are
108-
specified, the keys in env_vars will take precedence over the keys in
109-
env_vars_file.
110-
111-
NAME=person
112-
113-
114-
When specified as KEY=VALUE pairs, the same escaping rules apply as
115-
described in `env_vars`. You do not have to escape YAML or JSON.
116-
117-
If both `env_vars` and `env_vars_file` are specified, the keys in
118-
`env_vars` will take precedence over the keys in `env_vars_file`.
119-
120-
**⚠️ DEPRECATION NOTICE:** This input is deprecated and will be removed in
121-
the next major version release.
122-
123107
- <a name="__input_env_vars_update_strategy"></a><a href="#user-content-__input_env_vars_update_strategy"><code>env_vars_update_strategy</code></a>: _(Required, default: `merge`)_ Controls how the environment variables are set on the Cloud Run service.
124108
If set to "merge", then the environment variables are _merged_ with any
125109
upstream values. If set to "overwrite", then all environment variables on
@@ -135,13 +119,15 @@ jobs:
135119
volumes. Keys starting with a forward slash '/' are mount paths. All other
136120
keys correspond to environment variables:
137121

138-
with:
139-
secrets: |-
140-
# As an environment variable:
141-
KEY1=secret-key-1:latest
122+
```yaml
123+
with:
124+
secrets: |-
125+
# As an environment variable:
126+
KEY1=secret-key-1:latest
142127
143-
# As a volume mount:
144-
/secrets/api/key=secret-key-2:latest
128+
# As a volume mount:
129+
/secrets/api/key=secret-key-2:latest
130+
```
145131

146132
This value will only be set if the input is a non-empty value. If a
147133
non-empty value is given, the field values will be overwritten (not
@@ -159,9 +145,11 @@ jobs:
159145
unless quoted. Any leading or trailing whitespace is trimmed unless values
160146
are quoted.
161147

162-
labels: |-
163-
labela=my-label
164-
labelb=my-other-label
148+
```yaml
149+
labels: |-
150+
labela=my-label
151+
labelb=my-other-label
152+
```
165153

166154
This value will only be set if the input is a non-empty value. If a
167155
non-empty value is given, the field values will be overwritten (not
@@ -191,14 +179,18 @@ jobs:
191179
`gcloud run deploy`. For Cloud Run jobs, this command will be `gcloud jobs
192180
deploy`.
193181

194-
with:
195-
flags: '--add-cloudsql-instances=...'
182+
```yaml
183+
with:
184+
flags: '--add-cloudsql-instances=...'
185+
```
196186

197187
Flags that include other flags must quote the _entire_ outer flag value. For
198188
example, to pass `--args=-X=123`:
199189

200-
with:
201-
flags: '--add-cloudsql-instances=... "--args=-X=123"'
190+
```yaml
191+
with:
192+
flags: '--add-cloudsql-instances=... "--args=-X=123"'
193+
```
202194

203195
See the [complete list of
204196
flags](https://cloud.google.com/sdk/gcloud/reference/run/deploy#FLAGS) for
@@ -216,21 +208,27 @@ jobs:
216208

217209
- <a name="__input_revision_traffic"></a><a href="#user-content-__input_revision_traffic"><code>revision_traffic</code></a>: _(Optional)_ Comma-separated list of revision traffic assignments.
218210

219-
with:
220-
revision_traffic: 'my-revision=10' # percentage
211+
```yaml
212+
with:
213+
revision_traffic: 'my-revision=10' # percentage
214+
```
221215

222216
To update traffic to the latest revision, use the special tag "LATEST":
223217

224-
with:
225-
revision_traffic: 'LATEST=100'
218+
```yaml
219+
with:
220+
revision_traffic: 'LATEST=100'
221+
```
226222

227223
This is mutually-exclusive with `tag_traffic`. This option only applies
228224
to services.
229225

230226
- <a name="__input_tag_traffic"></a><a href="#user-content-__input_tag_traffic"><code>tag_traffic</code></a>: _(Optional)_ Comma-separated list of tag traffic assignments.
231227

232-
with:
233-
tag_traffic: 'my-tag=10' # percentage
228+
```yaml
229+
with:
230+
tag_traffic: 'my-tag=10' # percentage
231+
```
234232

235233
This is mutually-exclusive with `revision_traffic`. This option only
236234
applies to services.
@@ -240,14 +238,18 @@ jobs:
240238
features that are not exposed via this GitHub Action. This flag only
241239
applies when `revision_traffic` or `tag_traffic` is set.
242240

243-
with:
244-
traffic_flags: '--set-tags=...'
241+
```yaml
242+
with:
243+
traffic_flags: '--set-tags=...'
244+
```
245245

246246
Flags that include other flags must quote the _entire_ outer flag value. For
247247
example, to pass `--args=-X=123`:
248248

249-
with:
250-
flags: '--set-tags=... "--args=-X=123"'
249+
```yaml
250+
with:
251+
flags: '--set-tags=... "--args=-X=123"'
252+
```
251253

252254
See the [complete list of
253255
flags](https://cloud.google.com/sdk/gcloud/reference/run/services/update#FLAGS)

dist/main/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deploy-cloudrun",
3-
"version": "2.7.5",
3+
"version": "3.0.0",
44
"description": "Github Action: Deploy to Google Cloud Run",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)