|
37 | 37 | STAGE_PR_BRANCH_BODY_PREFIX = "Workflow and script updates from development repository"
|
38 | 38 | STAGE_PR_BRANCH_NAME_PREFIX = "Release-"
|
39 | 39 |
|
40 |
| -# SCHEDULE_INSERT = [ |
41 |
| -# " # Daily trigger to check updates", |
42 |
| -# " schedule:", |
43 |
| -# ' - cron: "0 0 * * *"', |
44 |
| -# ] |
45 |
| - |
46 |
| -# (JOSE) Marked for removal. This function (and call locations) modify |
47 |
| -# version_check.yml which will be removed. |
48 |
| -# def update_workflow(): |
49 |
| -# lines = [] |
50 |
| -# with open(VERSION_CHECK_YAML_FILE, "r") as schedule_file: |
51 |
| -# lines = schedule_file.readlines() |
52 |
| - |
53 |
| -# for line in lines: |
54 |
| -# if line.strip() == "on:": |
55 |
| -# insert_location = lines.index(line) + 1 |
56 |
| -# if SCHEDULE_INSERT[0] not in lines[insert_location].rstrip(): |
57 |
| -# print("[INFO] add cron job to schedule.yaml") |
58 |
| -# lines.insert(insert_location, f"{SCHEDULE_INSERT[0]}\n") |
59 |
| -# lines.insert(insert_location + 1, f"{SCHEDULE_INSERT[1]}\n") |
60 |
| -# lines.insert(insert_location + 2, f"{SCHEDULE_INSERT[2]}\n") |
61 |
| -# break |
62 |
| - |
63 |
| -# with open(VERSION_CHECK_YAML_FILE, "w") as schedule_file: |
64 |
| -# schedule_file.write("".join(lines)) |
65 |
| - |
66 |
| - |
67 | 40 | def make_required_changes(release_info_dir, origin, destination):
|
68 | 41 | print(f"Make required changes from {origin} to {destination}")
|
69 | 42 |
|
@@ -207,9 +180,6 @@ def main():
|
207 | 180 |
|
208 | 181 | print("edit files in charts")
|
209 | 182 | os.chdir(args.charts_dir)
|
210 |
| - # (JOSE) Marked for removal. This function (and call locations) modify |
211 |
| - # version_check.yml which will be removed. |
212 |
| - # update_workflow() |
213 | 183 |
|
214 | 184 | organization = args.target_repository.split("/")[0]
|
215 | 185 | charts_repository = f"{organization}{gitutils.CHARTS_REPO}"
|
|
0 commit comments