You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: hermetic build action version to use shared-dependencies verson
The hermetic build script relied on the sdk-platform-java release
version to set the GitHub Action verison. Now it's in the monorepo
and cannot rely on the version. Instead, let's use the shared
dependencies BOM version in the Git tag.
Copy file name to clipboardExpand all lines: sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.github/scripts/update_generation_config.sh
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -48,13 +48,14 @@ function update_config() {
48
48
}
49
49
50
50
# Update an action to a new version in GitHub action.
51
+
# the second argument must have the git tag (including "v").
51
52
functionupdate_action() {
52
53
local key_word=$1
53
54
local new_value=$2
54
55
local file=$3
55
56
echo"Update ${key_word} to ${new_value} in ${file}"
56
57
# use a different delimiter because the key_word contains "/".
57
-
sed -i -e "s|${key_word}@v.*$|${key_word}@v${new_value}|""${file}"
58
+
sed -i -e "s|${key_word}@.*$|${key_word}@${new_value}|""${file}"
0 commit comments