diff --git a/.github/workflows/profile.yaml b/.github/workflows/profile.yaml index 0ded579442..4521a9385e 100644 --- a/.github/workflows/profile.yaml +++ b/.github/workflows/profile.yaml @@ -55,10 +55,9 @@ jobs: - name: Run PR benchmarks id: benchmark run: | - cargo bench --bench compile_demo_art --features=iai -- --baseline main > benchmark_results.txt - echo "BENCHMARK_OUTPUT<> $GITHUB_OUTPUT - cat benchmark_results.txt >> $GITHUB_OUTPUT - echo "EOF" >> $GITHUB_OUTPUT + BENCH_OUTPUT=$(cargo bench --bench compile_demo_art --features=iai -- --baseline=master) + ESCAPED_OUTPUT=$(echo "$BENCH_OUTPUT" | jq -sR .) + echo "BENCHMARK_OUTPUT=$ESCAPED_OUTPUT" >> $GITHUB_OUTPUT - name: Comment PR uses: actions/github-script@v6