Skip to content

Commit

Permalink
ci: Move responsibility
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Nov 30, 2024
1 parent b73e2c6 commit afc56b2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions data-raw/upgrade.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit afc56b2

Please sign in to comment.