From 3e160224996cbede4126f5bd708f7caa48c7a7d8 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Tue, 6 Dec 2022 10:19:51 -0500 Subject: [PATCH] bench workflow - use bash as shell (#5546) --- .github/workflows/benchmark.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index c1c0132611..0fd11435c4 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -48,10 +48,11 @@ jobs: - name: Run benchmark id: benchmark-pr run: | - pnpm run --silent benchmark 1&> ./bench-result.md + pnpm run --silent benchmark 2> ./bench-result.md result=$(awk '/requests in/' ./bench-result.md) echo "::set-output name=BENCH_RESULT${{matrix.node-version}}::$result" echo "$result" + shell: bash # main benchmark - uses: actions/checkout@v3 @@ -69,10 +70,11 @@ jobs: - name: Run benchmark id: benchmark-main run: | - pnpm run --silent benchmark 1&> ./bench-result.md + pnpm run --silent benchmark 2> ./bench-result.md result=$(awk '/requests in/' ./bench-result.md) echo "::set-output name=BENCH_RESULT${{matrix.node-version}}::$result" echo "$result" + shell: bash output-benchmark: if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && startsWith(github.event.comment.body, '!bench') }}