From 4e38e3b987287bde0909b435dbcecf5c7094580f Mon Sep 17 00:00:00 2001 From: "D. Ben Knoble" Date: Mon, 25 Jul 2022 15:43:34 -0400 Subject: [PATCH] use pipefail in a step with a pipe This is _supposed_ to be the default according to https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_id_stepsshell but https://github.com/actions/runner/issues/353 indicates that this is _still_ not really the case (but the end result is confusing), so we'll be explicit here. --- .github/workflows/benchmarks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 3ab1fdc8..08e0c4cd 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -22,6 +22,7 @@ jobs: - name: Install Package and its Dependencies run: make install - name: Run benchmark + shell: 'bash --noprofile --norc -eo pipefail {0}' run: make report-benchmarks | tee benchmarks.txt - name: Store benchmark result uses: benchmark-action/github-action-benchmark@v1