Skip to content

Commit bb9db83

Browse files
move closer to the example
1 parent f1e8cf3 commit bb9db83

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/benchmarking.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ jobs:
8484
run: Rscript -e "bench::cb_push()"
8585
- uses: actions/upload-artifact@v1
8686
with:
87-
name: pr-comment
87+
name: results
8888
path: bench/pr-comment
8989
- uses: actions/download-artifact@v1
9090
with:
91-
name: pr-comment
91+
name: results
9292
- name: comment PR
9393
uses: machine-learning-apps/pr-comment@master
9494
env:
9595
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9696
with:
97-
path: pr-comment
97+
path: results/info.txt

bench/01-declarations.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ plot_against_base <- function(new_bm,
3232
stopifnot(nrow(new_bm) == 2)
3333
diff_in_percent <- round(100 * diff(new_bm$p50) / new_bm$p50[1])
3434
pr_comment <- glue::glue("* {name}: {new_bm$p50[1]} -> {new_bm$p50[2]} ({diff_in_percent}%)\n")
35-
cat(pr_comment, file = "pr-comment", append = TRUE)
35+
file <- "pr-comment/info.txt"
36+
dir.create(dirname(file))
37+
cat(pr_comment, file = file, append = TRUE)
3638
}
3739
}
3840
}

0 commit comments

Comments
 (0)