Skip to content

Commit 115b418

Browse files
committed
Merge branch 'renovate-3546' of github.com:googlecloudplatform/nodejs-docs-samples into renovate-3546
2 parents d42d1b8 + 1af319d commit 115b418

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/utils/ci-secrets.yaml.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run:
4444
working-directory: '{{ path }}'
4545
steps:
46-
- uses: actions/checkout@v3.5.3
46+
- uses: actions/checkout@v4.1.0
4747
with:
4848
ref: ${% raw %}{{github.event.pull_request.head.sha}}{% endraw %}
4949
- uses: 'google-github-actions/auth@v1.1.1'
@@ -59,7 +59,7 @@ jobs:
5959
# TODO: Update secrets
6060
secret_key_1:nodejs-docs-samples-tests/secret-1
6161
secret_key_2:nodejs-docs-samples-tests/secret-2
62-
- uses: actions/setup-node@v3.6.0
62+
- uses: actions/setup-node@v3.8.0
6363
with:
6464
node-version: 16
6565
- name: Get npm cache directory

batch/create/create_script_job_with_template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function main(projectId, region, jobName, templateLink) {
8989
// Read more about machine types here: https://cloud.google.com/compute/docs/machine-types
9090
const allocationPolicy = new batch.AllocationPolicy();
9191
const instances = new batch.AllocationPolicy.InstancePolicyOrTemplate();
92-
instances.templateLink = templateLink;
92+
instances.instanceTemplate = templateLink;
9393
allocationPolicy.instances = [instances];
9494

9595
const job = new batch.Job();

batch/test/advanced_creation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function sleep(ms) {
176176
async function projectIdToNumber(projectId) {
177177
// Construct request
178178
const request = {
179-
name: projectId,
179+
name: `projects/${projectId}`,
180180
};
181181

182182
// Run request
@@ -193,7 +193,7 @@ async function projectIdToNumber(projectId) {
193193
* @param {string} templateName - Name of the new template to create.
194194
*/
195195
async function createTemplate(projectId, templateName) {
196-
const projectNumber = projectIdToNumber(projectId);
196+
const projectNumber = await projectIdToNumber(projectId);
197197
const serviceAccountAddress = `${projectNumber}-compute@developer.gserviceaccount.com`;
198198

199199
const [response] = await instanceTemplatesClient.insert({

run/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ testing.
125125
gcloud builds submit --tag gcr.io/${GOOGLE_CLOUD_PROJECT}/${SAMPLE}
126126
gcloud run deploy ${SAMPLE} \
127127
# Needed for Manual Logging sample.
128-
--set-env-var GOOGLE_CLOUD_PROJECT=${GOOGLE_CLOUD_PROJECT} \
128+
--set-env-vars GOOGLE_CLOUD_PROJECT=${GOOGLE_CLOUD_PROJECT} \
129129
--image gcr.io/${GOOGLE_CLOUD_PROJECT}/${SAMPLE}
130130
```
131131

0 commit comments

Comments
 (0)