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%'