name: Benchmark PR on: pull_request_target: branches: [main] jobs: benchmark: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} repository: ${{ github.event.pull_request.head.repo.full_name }} - run: npm ci - run: npm run benchmark - run: | curl -X POST ${{ secrets.SLACK_WEBHOOK }} \ -H "Content-Type: application/json" \ -d "{\"text\":\"Benchmark done for ${{ github.event.pull_request.title }}\"}"