From afc56b2698d735c107d7563b4a93d6c2ba8b1144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sat, 30 Nov 2024 17:54:24 +0100 Subject: [PATCH] ci: Move responsibility --- data-raw/upgrade.R | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/data-raw/upgrade.R b/data-raw/upgrade.R index 7b38fc843..983058f6c 100644 --- a/data-raw/upgrade.R +++ b/data-raw/upgrade.R @@ -64,25 +64,10 @@ register_misc_extension("series") register_misc_extension("csv") register_misc_extension("uuid") - if (any(grepl("^src/", gert::git_status()$file))) { - branch <- paste0("f-", sub("[.][^.]*$", "", latest_name)) - message("Changes detected, creating branch: ", branch) - - version <- sub("^.*-([0-9])([0-9][0-9])(?:0([0-9])|([1-9][0-9]))[0-9]+[.].*$", "\\1.\\2.\\3\\4", latest_name) - - old_branch <- gert::git_branch() - message("Old branch: ", old_branch) - - gert::git_branch_create(branch) gert::git_add("src") commit_msg <- paste0("feat: Upgrade bundled SQLite to ", version) message("Commit message: ", commit_msg) gert::git_commit(commit_msg) - - # Force-pushing: this job is run daily, will give a daily notification - # and still succeed - message("Pushing branch") - gert::git_push(force = TRUE) }