Skip to content

Commit 338a7ad

Browse files
authored
chore: update GH Action templates to use gapic-libraries-bom version (#12872)
This PR updates the templates in `sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/` to use `gapic-libraries-bom` and the `v{version}` tag format for action versioning. The Git tag for shared dependencies BOM version is created by an automation (GitHub Actions) automatically. While it would work just fine, chaining automated events will make future troubleshooting difficult. So let's rely on the original tag of the google-cloud-java repository, which matches gapic-libraries-bom version. b/503444342
1 parent 5c890f8 commit 338a7ad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.github/scripts/update_generation_config.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ update_config "gapic_generator_version" "${latest_gapic_generator_version}" "${g
150150
# Update the GitHub Actions reference to the latest.
151151
# After the google-cloud-java monorepo migration of sdk-platform-java,
152152
# we cannot rely on the gapic-generator-java version tag. Let's use
153-
# the shared dependencies BOM version
154-
latest_shared_dependencies_bom_version=$(get_latest_released_version "com.google.cloud" "google-cloud-shared-dependencies")
153+
# the gapic-libraries-bom version
154+
latest_gapic_libraries_bom_version=$(get_latest_released_version "com.google.cloud" "gapic-libraries-bom")
155155
update_action "googleapis/google-cloud-java/sdk-platform-java/.github/scripts" \
156-
"google-cloud-shared-dependencies/v${latest_shared_dependencies_bom_version}" \
156+
"v${latest_gapic_libraries_bom_version}" \
157157
"${workflow}"
158158

159159
# Update libraries-bom version to the latest

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@google-cloud-shared-dependencies/v(?<currentValue>.+?)\\n"
32+
"uses: googleapis/google-cloud-java/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@v(?<currentValue>.+?)\\n"
3333
],
34-
"depNameTemplate": "com.google.cloud:google-cloud-shared-dependencies",
34+
"depNameTemplate": "com.google.cloud:gapic-libraries-bom",
3535
"datasourceTemplate": "maven"
3636
}
3737
],

0 commit comments

Comments
 (0)