From e5e7e8d3921cc4aa48e559f692fe5d831c17dd0b Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Fri, 30 Apr 2021 16:11:05 -0700 Subject: [PATCH] benchmarks: cumulative output --- .github/workflows/benchmark.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 5aaa5b932..0fb8898f1 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -71,8 +71,21 @@ jobs: RUN_COUNT: 10 ELECTRON_ENABLE_STACK_DUMPING: on - - name: Upload benchmark log - uses: actions/upload-artifact@v2 + - name: Clone benchmark branch + uses: actions/checkout@v2 with: - name: benchmark.log - path: benchmark.log + repository: 'signalapp/Signal-Desktop-Benchmarks-Private' + path: 'benchmark-results' + token: ${{ secrets.AUTOMATED_GITHUB_PAT }} + + - name: Push benchmark branch + working-directory: benchmark-results + run: | + npm ci + node ./bin/collect.js ../benchmark.log data.json + npm run build + git config --global user.email "no-reply@signal.org" + git config --global user.name "Signal Bot" + git add . + git commit --message "${GITHUB_REF} ${GITHUB_SHA}" + git push --force origin main