From 772c0ca1a0fa5d87c49043190366388457bdc9fe Mon Sep 17 00:00:00 2001 From: Jonathan Wang <31040440+jonathanpwang@users.noreply.github.com> Date: Tue, 24 Dec 2024 01:11:24 -0500 Subject: [PATCH] chore: add repo name --- .github/workflows/benchmark-call.yml | 3 ++- .github/workflows/benchmarks.yml | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/benchmark-call.yml b/.github/workflows/benchmark-call.yml index 2d74817d8f..5449a0e784 100644 --- a/.github/workflows/benchmark-call.yml +++ b/.github/workflows/benchmark-call.yml @@ -131,7 +131,8 @@ jobs: - uses: actions/checkout@v4 with: - ref: ${{ github.head_ref || github.ref }} + ref: ${{ github.event.pull_request.head.sha || github.sha }} + repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} - uses: dtolnay/rust-toolchain@nightly - uses: Swatinem/rust-cache@v2 diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 9c6f912c15..0200eee9fe 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -23,6 +23,7 @@ env: CARGO_TERM_COLOR: always OPENVM_FAST_TEST: "1" CURRENT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} + REPO: ${{ github.event.pull_request.head.repo.full_name || github.repository }} CARGO_NET_GIT_FETCH_WITH_CLI: "true" permissions: @@ -39,7 +40,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.head_ref || github.ref }} + ref: ${{ CURRENT_SHA }} + repository: ${{ REPO }} - name: Create benchmark matrix from JSON id: create-matrix @@ -133,7 +135,8 @@ jobs: ########################################################################## - uses: actions/checkout@v4 with: - ref: ${{ github.head_ref || github.ref }} + ref: ${{ CURRENT_SHA }} + repository: ${{ REPO }} - name: Set github pages path for PR if: github.event_name == 'pull_request'