Skip to content

Commit 1d46f79

Browse files
authored
Update README and CI to use latest version (#478)
1 parent 82a0d44 commit 1d46f79

File tree

3 files changed

+9
-30
lines changed

3 files changed

+9
-30
lines changed

.github/workflows/cleanup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
steps:
1717
- uses: 'actions/checkout@v4'
1818

19-
- uses: 'google-github-actions/auth@main'
19+
- uses: 'google-github-actions/auth@v2'
2020
with:
2121
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
2222
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
2323

24-
- uses: 'google-github-actions/setup-gcloud@main'
24+
- uses: 'google-github-actions/setup-gcloud@v2'
2525

2626
- name: Delete services
2727
run: |-

.github/workflows/integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
- run: 'npm ci && npm run build'
5050

51-
- uses: 'google-github-actions/auth@main'
51+
- uses: 'google-github-actions/auth@v2'
5252
with:
5353
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
5454
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
@@ -126,7 +126,7 @@ jobs:
126126

127127
- run: 'npm ci && npm run build'
128128

129-
- uses: 'google-github-actions/auth@main'
129+
- uses: 'google-github-actions/auth@v2'
130130
with:
131131
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
132132
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'

README.md

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ jobs:
3636
steps:
3737
- uses: 'actions/checkout@v4'
3838

39-
- uses: 'google-github-actions/auth@v1'
39+
- uses: 'google-github-actions/auth@v2'
4040
with:
4141
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
4242
service_account: '[email protected]'
4343

4444
- id: 'deploy'
45-
uses: 'google-github-actions/deploy-cloudrun@v1'
45+
uses: 'google-github-actions/deploy-cloudrun@v2'
4646
with:
4747
service: 'hello-cloud-run'
4848
image: 'gcr.io/cloudrun/hello'
@@ -302,12 +302,12 @@ jobs:
302302
303303
# ...
304304
305-
- uses: 'google-github-actions/auth@v1'
305+
- uses: 'google-github-actions/auth@v2'
306306
with:
307307
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
308308
service_account: '[email protected]'
309309
310-
- uses: 'google-github-actions/deploy-cloudrun@v1'
310+
- uses: 'google-github-actions/deploy-cloudrun@v2'
311311
with:
312312
image: 'gcr.io/cloudrun/hello'
313313
service: 'hello-cloud-run'
@@ -326,7 +326,7 @@ jobs:
326326
steps:
327327
# ...
328328
329-
- uses: 'google-github-actions/deploy-cloudrun@v1'
329+
- uses: 'google-github-actions/deploy-cloudrun@v2'
330330
with:
331331
image: 'gcr.io/cloudrun/hello'
332332
service: 'hello-cloud-run'
@@ -341,27 +341,6 @@ Credentials.
341341

342342
* [Build and deploy a container](https://github.com/google-github-actions/example-workflows/blob/main/workflows/deploy-cloudrun/cloudrun-docker.yml)
343343

344-
## Versioning
345-
346-
We recommend pinning to the latest available major version:
347-
348-
```yaml
349-
- uses: 'google-github-actions/deploy-cloudrun@v1'
350-
```
351-
352-
While this action attempts to follow semantic versioning, but we're ultimately
353-
human and sometimes make mistakes. To prevent accidental breaking changes, you
354-
can also pin to a specific version:
355-
356-
```yaml
357-
- uses: 'google-github-actions/[email protected]'
358-
```
359-
360-
However, you will not get automatic security updates or new features without
361-
explicitly updating your version number. Note that we only publish `MAJOR` and
362-
`MAJOR.MINOR.PATCH` versions. There is **not** a floating alias for
363-
`MAJOR.MINOR`.
364-
365344

366345
[cloud-run]: https://cloud.google.com/run
367346
[sa]: https://cloud.google.com/iam/docs/creating-managing-service-accounts

0 commit comments

Comments
 (0)