We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b6c42a commit 0b546dcCopy full SHA for 0b546dc
.github/workflows/benchmark.yaml
@@ -20,11 +20,18 @@ jobs:
20
if: ${{ github.event.issue.pull_request }} && contains(github.event.comment.body, '/bench')
21
22
steps:
23
- # checkout repo, install dependencies
24
- - uses: actions/checkout@v3
25
- with:
26
- 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
27
+ uses: actions/checkout@v3
28
+
29
+ - name: Checkout Pull Request
30
+ run: hub pr checkout ${{ github.event.issue.number }}
31
+ env:
32
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33
34
+ # install dependencies
35
- name: Install Rust toolchain
36
uses: dtolnay/rust-toolchain@stable
37
0 commit comments