in lib/release_tools/internal_release/update_version_file.rb [59:90]
def create_version_commit
message = "Update #{VERSION_FILE_NAME} file for #{version}"
logger.info(
"Setting version file",
project: SECURITY_PROJECT_PATH,
gitlab_branch: gitlab_branch,
file_path: VERSION_FILE_NAME,
version: version
)
commit = Retriable.with_context(:api) do
client.create_commit(
SECURITY_PROJECT_PATH,
gitlab_branch,
message,
[
{
action: 'update',
file_path: VERSION_FILE_NAME,
content: version
}
]
)
end
logger.info('Updated version file on security Gitlab project',
file_path: VERSION_FILE_NAME,
url: commit.web_url)
commit
end