From 6e16ef42c7b92c71729d9cc49b97b15dec6c4e23 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Tue, 12 Mar 2024 13:25:58 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Replace=20tee=20with=20redirect?= =?UTF-8?q?=20to=20file=20+=20tail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pathogen-repo-build.yaml | 2 +- .github/workflows/pathogen-repo-build.yaml.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pathogen-repo-build.yaml b/.github/workflows/pathogen-repo-build.yaml index 1872d55..42d7d03 100644 --- a/.github/workflows/pathogen-repo-build.yaml +++ b/.github/workflows/pathogen-repo-build.yaml @@ -274,7 +274,7 @@ jobs: # shellcheck disable=SC2154 set -x - eval "$NEXTSTRAIN_BUILD_COMMAND" |& tee build.log + eval "$NEXTSTRAIN_BUILD_COMMAND" &> build.log & tail --pid $! -n +1 -f build.log # Attempt to get the AWS Batch ID even if the run build command failed # as long as the runtime is `aws-batch` and the `build.log` file exists - if: ${{ always() && inputs.runtime == 'aws-batch' && hashFiles('build.log') != '' }} diff --git a/.github/workflows/pathogen-repo-build.yaml.in b/.github/workflows/pathogen-repo-build.yaml.in index 5157cdf..83e9e00 100644 --- a/.github/workflows/pathogen-repo-build.yaml.in +++ b/.github/workflows/pathogen-repo-build.yaml.in @@ -240,7 +240,7 @@ jobs: # shellcheck disable=SC2154 set -x - eval "$NEXTSTRAIN_BUILD_COMMAND" |& tee build.log + eval "$NEXTSTRAIN_BUILD_COMMAND" &> build.log & tail --pid $! -n +1 -f build.log # Attempt to get the AWS Batch ID even if the run build command failed # as long as the runtime is `aws-batch` and the `build.log` file exists