You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/07/01 09:30:53 UTC

[GitHub] [arrow] assignUser commented on a diff in pull request #13453: ARROW-16901: [R][CI] Prune R nightly builds

assignUser commented on code in PR #13453:
URL: https://github.com/apache/arrow/pull/13453#discussion_r911792408


##########
.github/workflows/r_nightly.yml:
##########
@@ -101,18 +127,37 @@ jobs:
           # strip superfluous nested dirs
           new_paths <- sub(art_path, ".", new_paths)
           dirs <- dirname(new_paths)
-          dir_result <- sapply(dirs, dir.create, recursive = TRUE)
-
-          if (!all(dir_result)) {
-            stop("There was an issue while creating the folders!")
-          }
+          sapply(dirs, dir.create, recursive = TRUE, showWarnings = FALSE)
 
-          copy_result <- file.copy(current_path, new_paths)
+          # overwrite allows us to "force push" a new version with the same name
+          copy_result <- file.copy(current_path, new_paths, overwrite = TRUE)
 
           if (!all(copy_result)) {
             stop("There was an issue while copying the files!")
           }
+      - name: Prune Repository
+        shell: bash
+        env:
+          KEEP: ${{ github.event.inputs.keep || 14 }}

Review Comment:
   The default value shows up in a text box, so theoretically you could delete it and this would catch it. Probably unlikely but its only 4 chars  🤷 😀 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org