Skip to content

Commit 4ecf667

Browse files
committed
Bugfixes
1 parent 7af8cd6 commit 4ecf667

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bench_runner/scripts/run_benchmarks.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ def update_metadata(
250250
metadata["benchmark_hash"] = util.get_benchmark_hash()
251251
if run_id is not None:
252252
metadata["github_action_url"] = f"{GITHUB_URL}/actions/runs/{run_id}"
253-
if actor := os.environ.get("GITHUB_ACTOR") is not None:
253+
actor = os.environ.get("GITHUB_ACTOR")
254+
if actor is not None:
254255
metadata["github_actor"] = actor
255256

256257
with open(filename, "w") as fd:

bench_runner/templates/_generate.src.yml

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
steps:
2929
- name: Checkout benchmarking
3030
uses: actions/checkout@v4
31+
with:
32+
ref: main
3133
- name: Checkout CPython
3234
uses: actions/checkout@v4
3335
with:

0 commit comments

Comments
 (0)