Skip to content

Commit 624c035

Browse files
committed
PR_HEAD_SHA
1 parent c1bd4fe commit 624c035

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/fork_pr_benchmarks_track.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
script: |
3232
let fs = require('fs');
3333
let prEvent = JSON.parse(fs.readFileSync(process.env.PR_EVENT, {encoding: 'utf8'}));
34-
core.exportVariable("PR_HEAD", `${prEvent.number}/merge`);
34+
core.exportVariable("PR_HEAD", `fork/${prEvent.pull_request.head.ref}`);
35+
core.exportVariable("PR_HEAD_SHA", prEvent.pull_request.head.sha);
3536
core.exportVariable("PR_BASE", prEvent.pull_request.base.ref);
3637
core.exportVariable("PR_BASE_SHA", prEvent.pull_request.base.sha);
3738
core.exportVariable("PR_NUMBER", prEvent.number);
@@ -42,6 +43,7 @@ jobs:
4243
--project example \
4344
--token '${{ secrets.BENCHER_API_TOKEN }}' \
4445
--branch "$PR_HEAD" \
46+
--hash "$PR_HEAD_SHA" \
4547
--start-point "$PR_BASE" \
4648
--start-point-hash "$PR_BASE_SHA" \
4749
--start-point-clone-thresholds \

0 commit comments

Comments
 (0)