Skip to content

Commit 18d144a

Browse files
committed
[CI][Benchmarks] Fix pushing results to new branch
1 parent 92a006c commit 18d144a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

devops/actions/run-tests/benchmark/action.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ inputs:
3737
type: string
3838
required: False
3939

40-
env:
41-
BENCHMARK_RESULTS_BRANCH: "sycl-benchmark-ci-results"
42-
4340
runs:
4441
# composite actions don't make use of 'name', so copy-paste names as a comment in the first line of each step
4542
using: "composite"
@@ -49,7 +46,8 @@ runs:
4946
env:
5047
TARGET_DEVICE: ${{ inputs.target_devices }}
5148
PRESET: ${{ inputs.preset }}
52-
run: |
49+
BENCHMARK_RESULTS_BRANCH: ${{ env.BENCHMARK_RESULTS_BRANCH }}
50+
run: |
5351
# Check specified runner type / target backend
5452
case "$RUNNER_TAG" in
5553
'["PVC_PERF"]' ) ;;
@@ -164,6 +162,15 @@ runs:
164162
sudo cmake --install build
165163
166164
cd -
165+
- name: Set env var for results branch
166+
shell: bash
167+
run: |
168+
# Set env var for results branch
169+
# Set BENCHMARK_RESULTS_BRANCH globally for all subsequent steps.
170+
# This has to be done this way because of limits of composite actions.
171+
BENCHMARK_RESULTS_BRANCH="sycl-benchmark-ci-results"
172+
echo "BENCHMARK_RESULTS_BRANCH=$BENCHMARK_RESULTS_BRANCH"
173+
echo "BENCHMARK_RESULTS_BRANCH=$BENCHMARK_RESULTS_BRANCH" >> $GITHUB_ENV
167174
- name: Checkout results repo
168175
uses: actions/checkout@v5
169176
with:

0 commit comments

Comments
 (0)