Skip to content

Commit

Permalink
fix(ci): hope bench checkout work for forks
Browse files Browse the repository at this point in the history
  • Loading branch information
QuadnucYard committed Feb 26, 2025
1 parent 8462cc5 commit d24d40e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/bench-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
ref: ${{ github.event.pull_request.head.ref }}

- name: Add PR remote
- name: Add upstream
env:
PR_REMOTE_URL: ${{ github.event.pull_request.head.repo.git_url }}
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
UPSTREAM_URL: ${{ github.event.pull_request.base.repo.git_url }}
UPSTREAM_REF: ${{ github.event.pull_request.base.ref }}
run: |
git remote add pr-remote "$PR_REMOTE_URL"
git fetch pr-remote "$PR_HEAD_REF" --no-tags --depth=1
git remote add upstream "$UPSTREAM_URL"
git fetch upstream "$UPSTREAM_REF" --no-tags --depth=1
# 设置 Rust 工具链
- uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -83,8 +83,8 @@ jobs:
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: '### 📊 Benchmark Performance Report'
comment-author: "github-actions[bot]"
body-includes: "### 📊 Benchmark Performance Report"

# 更新或创建评论
- name: Create or update comment
Expand Down

0 comments on commit d24d40e

Please sign in to comment.