Skip to content

Commit

Permalink
use pipefail in a step with a pipe
Browse files Browse the repository at this point in the history
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 actions/runner#353 indicates that this is
_still_ not really the case (but the end result is confusing), so we'll
be explicit here.
  • Loading branch information
benknoble committed Jul 25, 2022
1 parent a1ac1ea commit 4e38e3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e38e3b

Please sign in to comment.