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
chore: update action version through shell script (#3397)
In this PR:
- Update composite action version in `update_generation_config.sh` so
that the action version is updated in the same PR with image update.
- Do not update the action version through renovate.
Copy file name to clipboardexpand all lines: hermetic_build/library_generation/owlbot/templates/java_library/.github/scripts/update_generation_config.sh
+32-6
Original file line number
Diff line number
Diff line change
@@ -28,11 +28,23 @@ function update_config() {
28
28
sed -i -e "s/^${key_word}.*$/${key_word}: ${new_value}/""${file}"
29
29
}
30
30
31
+
# Update an action to a new version in GitHub action.
32
+
functionupdate_action() {
33
+
local key_word=$1
34
+
local new_value=$2
35
+
local file=$3
36
+
echo"Update ${key_word} to ${new_value} in ${file}"
37
+
# use a different delimiter because the key_word contains "/".
38
+
sed -i -e "s|${key_word}@v.*$|${key_word}@v${new_value}|""${file}"
39
+
}
40
+
31
41
# The parameters of this script is:
32
42
# 1. base_branch, the base branch of the result pull request.
0 commit comments