From 6417d3077bf18db51ec1651a983d8226df7e01bf Mon Sep 17 00:00:00 2001 From: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> Date: Wed, 23 Jul 2025 12:25:53 +0800 Subject: [PATCH] ohos CI: Simplify getting the model name (#38219) Same output, but much easier and faster than sifting through the whole output of hdc bugreport. Testing: CI change: `./mach try` [run](https://github.com/servo/servo/actions/runs/16460283107) Signed-off-by: Jonathan Schwender --- .github/workflows/ohos.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ohos.yml b/.github/workflows/ohos.yml index d1b26fe8520..0aaf2662fea 100644 --- a/.github/workflows/ohos.yml +++ b/.github/workflows/ohos.yml @@ -295,8 +295,9 @@ jobs: run: touch speedometer.json if: ${{ steps.BencherRun.outcome == 'failure' }} - name: Getting model name + # awk is used to remove trailing spaces run: | - echo "MODEL_NAME=$(hdc bugreport | head -n 20 | grep MarketName | awk '{for (i=2; i> $GITHUB_ENV + echo "MODEL_NAME=$(hdc shell param get const.product.name | awk '{$1=$1;print}' )" >> $GITHUB_ENV - name: Combining bencher files run: jq --compact-output --slurp add speedometer.json bench.json > combined-bencher.json - uses: bencherdev/bencher@main