First of all thanks for this amazing GitHub action!
I'm trying to publish benchmarks results to a separate repository. I already fixed the problem with the standard GitHub token and I'm using a personal one with write permissions.
I'm having a problem when executing a second run of benchmarks. If there is a benchmark.json file already on the remote repository, the process fails with exit status 128: fatal: destination path '.' already exists and is not an empty directory.
name: run benchmarks on every PR
on:
pull_request:
jobs:
check:
uses: ./.github/workflows/benchmark.yml
secrets: inherit
with:
publish: false
test-flags: "-short -run=^$"
benchmark-publish.yml file that will run every day with main changes:
name: run benchmarks on main branch every day
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # run on default branch every day
jobs:
publish:
uses: ./.github/workflows/benchmark.yml
secrets: inherit
with:
publish: true
test-flags: "-short -run=^$" # TODO: remove short flag
I really appreciate any help you can provide. Thanks!
First of all thanks for this amazing GitHub action!
I'm trying to publish benchmarks results to a separate repository. I already fixed the problem with the standard GitHub token and I'm using a personal one with write permissions.
I'm having a problem when executing a second run of benchmarks. If there is a benchmark.json file already on the remote repository, the process fails with
exit status 128: fatal: destination path '.' already exists and is not an empty directory.
These are my workflow config files:
Main benchmark.yml file:
benchmark-check.yml that is running on every PR:
benchmark-publish.yml file that will run every day with main changes:
I really appreciate any help you can provide. Thanks!