diff --git a/.github/workflows/pathogen-repo-build.yaml b/.github/workflows/pathogen-repo-build.yaml index 1872d55..c6b2da1 100644 --- a/.github/workflows/pathogen-repo-build.yaml +++ b/.github/workflows/pathogen-repo-build.yaml @@ -267,6 +267,8 @@ jobs: with: cli-version: ">=7.4.0" runtime: ${{ inputs.runtime }} + - name: Install expect for unbuffer + run: sudo apt-get install expect - name: Run build via ${{ inputs.runtime }} env: NEXTSTRAIN_BUILD_COMMAND: ${{ inputs.run }} @@ -274,7 +276,7 @@ jobs: # shellcheck disable=SC2154 set -x - eval "$NEXTSTRAIN_BUILD_COMMAND" |& tee build.log + eval "unbuffer $NEXTSTRAIN_BUILD_COMMAND" |& tee 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..54f548a 100644 --- a/.github/workflows/pathogen-repo-build.yaml.in +++ b/.github/workflows/pathogen-repo-build.yaml.in @@ -233,6 +233,9 @@ jobs: cli-version: ">=7.4.0" runtime: ${{ inputs.runtime }} + - name: Install expect for unbuffer + run: sudo apt-get install expect + - name: Run build via ${{ inputs.runtime }} env: NEXTSTRAIN_BUILD_COMMAND: ${{ inputs.run }} @@ -240,7 +243,7 @@ jobs: # shellcheck disable=SC2154 set -x - eval "$NEXTSTRAIN_BUILD_COMMAND" |& tee build.log + eval "unbuffer $NEXTSTRAIN_BUILD_COMMAND" |& tee 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