1 name: External benchmark
10 if: github.repository == 'poolifier/poolifier'
11 runs-on: [self-hosted, external-benchmark]
14 working-directory: benchmarks/versus-external-pools
17 uses: actions/checkout@v4
19 uses: pnpm/action-setup@v2
23 uses: actions/setup-node@v3
27 - name: Install dependencies
28 run: pnpm install --ignore-scripts
30 if: github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
33 if: github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
35 COMMIT_MESSAGE: 'docs: update benchmark versus external pools results'
36 COMMIT_AUTHOR: Benchmark Bot
37 COMMIT_EMAIL: benchmark-bot@users.noreply.github.com
39 git config --local user.name "${{ env.COMMIT_AUTHOR }}"
40 git config --local user.email "${{ env.COMMIT_EMAIL }}"
42 git add ./BENCH-100000.md ./BENCH-100000.json
43 git commit -a -m "${{ env.COMMIT_MESSAGE }}"
45 if: github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
46 uses: CasperWA/push-protected@v2
48 token: ${{ secrets.GH_TOKEN_PROTECTED }}
49 branch: ${{ github.event.repository.default_branch }}