Skip to content

Commit b974740

Browse files
authored
fix: Update renovate config check template to use npx (#12865)
This PR updates the renovate config check workflow template to use npx instead of global installation, avoiding issues with missing modules. Renovate.json template is also updated to use the google-cloud-shared-dependencies Git tag in the google-cloud-java repository. Until this template change is propagated to the split repositories, the repositories with hermetic build automation reverts the change. b/504692883
1 parent 0b6a924 commit b974740

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.github/workflows/renovate_config_check.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
paths:
66
- 'renovate.json'
7+
- '.github/workflows/renovate_config_check.yaml'
78

89
jobs:
910
renovate_bot_config_validation:
@@ -18,8 +19,6 @@ jobs:
1819
with:
1920
node-version: '22'
2021

21-
- name: Install Renovate and Config Validator
22+
- name: Run Renovate Config Validator
2223
run: |
23-
npm install -g npm@latest
24-
npm install --global renovate
25-
renovate-config-validator
24+
npx --package renovate@43.136.0 renovate-config-validator

sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/renovate.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
"^.github/workflows/unmanaged_dependency_check.yaml$"
3030
],
3131
"matchStrings": [
32-
"uses: googleapis/google-cloud-java/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@v(?<currentValue>.+?)\\n"
32+
"uses: googleapis/google-cloud-java/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v(?<currentValue>.+?)\\n"
3333
],
34-
"depNameTemplate": "com.google.cloud:gapic-libraries-bom",
34+
"depNameTemplate": "com.google.cloud:google-cloud-shared-dependencies",
3535
"datasourceTemplate": "maven"
3636
}
3737
],

0 commit comments

Comments
 (0)