From b8f205eeced7a71e013569dbe846ab8163cbcb8f Mon Sep 17 00:00:00 2001 From: Sebastien Date: Mon, 24 Jul 2023 12:33:59 +0200 Subject: [PATCH] ci: fix ga job condition (#658) --- .github/workflows/on-main-push.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/on-main-push.yml b/.github/workflows/on-main-push.yml index c63c0ea2b..074be13d1 100644 --- a/.github/workflows/on-main-push.yml +++ b/.github/workflows/on-main-push.yml @@ -87,7 +87,7 @@ jobs: perf: needs: prepare-release runs-on: ubuntu-latest - if: needs.prepare-release.outputs.release_created == 'false' + if: needs.prepare-release.outputs.release_created != 'true' steps: - name: Checkout sources uses: actions/checkout@v3 @@ -130,14 +130,16 @@ jobs: path: ./e2e - name: Run benchmark - run: yarn test:perf + run: | + git checkout -f main + yarn test:perf - name: Store benchmark result uses: benchmark-action/github-action-benchmark@v1 with: name: Benchmark.js Benchmark tool: 'benchmarkjs' - output-file-path: ./plugin/perf-result.txt + output-file-path: ./perf-result.txt github-token: ${{ secrets.GITHUB_TOKEN }} auto-push: true alert-threshold: '130%'