Skip to content

Commit

Permalink
when using tee we need to ensure failures are propagated
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Nov 5, 2019
1 parent b1ddfa8 commit ce3d2ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/asset-size-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
run: |
mkdir -p tmp
mkdir -p tmp/asset-sizes
set -o pipefail
node ./bin/asset-size-tracking/generate-diff.js | tee tmp/asset-sizes/diff.txt
- name: Prepare Data For Report
if: failure() || success()
Expand All @@ -65,6 +66,7 @@ jobs:
- name: Print Asset Size Report
if: failure() || success()
run: |
set -o pipefail
node ./bin/asset-size-tracking/print-analysis.js | tee tmp/asset-sizes/commit-analysis.txt
- name: Upload ${{github.ref}} Dist Artifacts
uses: actions/upload-artifact@v1
Expand Down

0 comments on commit ce3d2ce

Please sign in to comment.