We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f67436 commit fc4ca27Copy full SHA for fc4ca27
.github/workflows/bench.yml
@@ -129,6 +129,8 @@ jobs:
129
130
- name: Server bench
131
id: server_bench
132
+ env:
133
+ HEAD_REF: ${{ github.head_ref || github.ref_name }}
134
run: |
135
set -eux
136
@@ -137,7 +139,7 @@ jobs:
137
139
python bench.py \
138
140
--runner-label ${{ env.RUNNER_LABEL }} \
141
--name ${{ github.job }} \
- --branch ${{ github.head_ref || github.ref_name }} \
142
+ --branch $HEAD_REF \
143
--commit ${{ github.event.inputs.sha || github.event.pull_request.head.sha || github.sha }} \
144
--scenario script.js \
145
--duration ${{ github.event.inputs.duration || env.DURATION }} \
0 commit comments