Skip to content

Commit

Permalink
fix: use PR branch in benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ma committed Jul 19, 2023
1 parent 2b6c42a commit 0b546dc
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,18 @@ jobs:
if: ${{ github.event.issue.pull_request }} && contains(github.event.comment.body, '/bench')

steps:
# checkout repo, install dependencies
- uses: actions/checkout@v3
with:
fetch-depth: 0
# the workflow is triggered from main branch
# cf. https://github.com/actions/checkout/issues/331
# need this first step to init the git repo
- name: Checkout
uses: actions/checkout@v3

- name: Checkout Pull Request
run: hub pr checkout ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# install dependencies
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

Expand Down

0 comments on commit 0b546dc

Please sign in to comment.