Skip to content

Commit 1e35699

Browse files
committed
fix: checkout ref
1 parent 4ba8e94 commit 1e35699

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ecosystem-benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
target: x86_64-unknown-linux-gnu
3434
runner: ${{ vars.LINUX_SELF_HOSTED_RUNNER_LABELS || '"ubuntu-latest"' }}
35-
ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/pull/{0}/head', inputs.pr) || github.sha }}
35+
ref: ${{ inputs.commit_id }}
3636
profile: "release"
3737
test: false
3838
bench: false
@@ -48,7 +48,7 @@ jobs:
4848
- name: Checkout
4949
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
5050
with:
51-
ref: ${{ github.sha }}
51+
ref: ${{ inputs.commit_id }}
5252

5353
- name: Clean
5454
uses: ./.github/actions/clean
@@ -94,4 +94,4 @@ jobs:
9494
git config --global user.name "github-actions[bot]"
9595
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
9696
cd rspack-ecosystem-benchmark
97-
RSPACK_DIR="$RSPACK_DIR" GITHUB_ACTOR=x-access-token node bin/upload.js ${{ secrets.PERF_DATA_TOKEN }} ${{ github.sha }}
97+
RSPACK_DIR="$RSPACK_DIR" GITHUB_ACTOR=x-access-token node bin/upload.js ${{ secrets.PERF_DATA_TOKEN }} ${{ inputs.commit_id }}

0 commit comments

Comments
 (0)