@@ -45,15 +45,15 @@ jobs:
45
45
workload_identity_provider : ' projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
46
46
service_account : ' my-service-account@my-project.iam.gserviceaccount.com'
47
47
48
- - id : deploy
49
- uses : google-github-actions/deploy-cloud-functions@v0.7.0
48
+ - id : ' deploy'
49
+ uses : ' google-github-actions/deploy-cloud-functions@v0'
50
50
with :
51
- name : my-function
52
- runtime : nodejs10
51
+ name : ' my-function'
52
+ runtime : ' nodejs12 '
53
53
54
54
# Example of using the output
55
- - id : test
56
- run : curl "${{ steps.deploy.outputs.url }}"
55
+ - id : ' test'
56
+ run : ' curl "${{ steps.deploy.outputs.url }}"'
57
57
` ` `
58
58
59
59
## Inputs
@@ -221,19 +221,19 @@ jobs:
221
221
id-token: 'write'
222
222
223
223
steps:
224
- - uses: actions/checkout@v2
224
+ - uses: ' actions/checkout@v2'
225
225
226
- - id: auth
227
- uses: google-github-actions/auth@v0
226
+ - id: ' auth'
227
+ uses: ' google-github-actions/auth@v0'
228
228
with:
229
229
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
230
230
service_account: 'my-service-account@my-project.iam.gserviceaccount.com'
231
231
232
- - id: deploy
233
- uses: google-github-actions/deploy-cloud-functions@v0.7.0
232
+ - id: ' deploy'
233
+ uses: ' google-github-actions/deploy-cloud-functions@v0'
234
234
with:
235
- name: my-function
236
- runtime: nodejs10
235
+ name: ' my-function'
236
+ runtime: 'nodejs12'
237
237
` ` `
238
238
239
239
# ### Authenticating via Service Account Key JSON
@@ -242,18 +242,18 @@ jobs:
242
242
jobs:
243
243
job_id:
244
244
steps:
245
- - uses: actions/checkout@v2
245
+ - uses: ' actions/checkout@v2'
246
246
247
- - id: auth
248
- uses: google-github-actions/auth@v0
247
+ - id: ' auth'
248
+ uses: ' google-github-actions/auth@v0'
249
249
with:
250
- credentials_json: ${{ secrets.gcp_credentials }}
250
+ credentials_json: ' ${{ secrets.gcp_credentials }}'
251
251
252
- - id: deploy
253
- uses: google-github-actions/deploy-cloud-functions@v0.7.0
252
+ - id: ' deploy'
253
+ uses: ' google-github-actions/deploy-cloud-functions@v0'
254
254
with:
255
- name: my-function
256
- runtime: nodejs10
255
+ name: ' my-function'
256
+ runtime: 'nodejs12'
257
257
` ` `
258
258
259
259
# ## Via Application Default Credentials
@@ -267,13 +267,13 @@ only works using a custom runner hosted on GCP.**
267
267
jobs:
268
268
job_id:
269
269
steps:
270
- - uses: actions/checkout@v2
270
+ - uses: ' actions/checkout@v2'
271
271
272
- - id: Deploy
273
- uses: google-github-actions/deploy-cloud-functions@v0.7.0
272
+ - id: 'deploy'
273
+ uses: ' google-github-actions/deploy-cloud-functions@v0'
274
274
with:
275
- name: my-function
276
- runtime: nodejs10
275
+ name: ' my-function'
276
+ runtime: 'nodejs12'
277
277
` ` `
278
278
279
279
The action will automatically detect and use the Application Default
0 commit comments