Skip to content

Commit

Permalink
Also benchmark on main (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Mar 20, 2023
1 parent ba50c4e commit 7967b9e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Benchmark
on: pull_request
on:
push:
branches: [main]
pull_request:
permissions:
pull-requests: write
contents: read
Expand Down Expand Up @@ -29,8 +32,11 @@ jobs:
run: |
echo "_(benchmark **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_" >> benchmark.md
python benchmark.py >> benchmark.md
- name: Comment PR
- name: Comment on PR
if: github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v2
with:
filePath: benchmark.md
comment_tag: benchmark
- name: Add benchmark to Job Summary
run: cat benchmark.md >> "$GITHUB_STEP_SUMMARY"

0 comments on commit 7967b9e

Please sign in to comment.