Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/pathogen-repo-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,15 @@ jobs:
# shellcheck disable=SC2154
set -x

exit_status=0
# tee build output to .git/ to avoid
# https://github.com/nextstrain/.github/issues/77#issuecomment-1998652064
# After build is complete, move .git/build.log to the working directory
# so this is kept as an implementation detail
eval "$NEXTSTRAIN_BUILD_COMMAND" |& tee .git/"$NEXTSTRAIN_BUILD_LOG"
eval "$NEXTSTRAIN_BUILD_COMMAND" |& tee .git/"$NEXTSTRAIN_BUILD_LOG" || exit_status=$?

mv .git/"$NEXTSTRAIN_BUILD_LOG" "$NEXTSTRAIN_BUILD_LOG"
exit $exit_status
# Attempt to get the AWS Batch ID even if the run build command failed
# as long as the runtime is `aws-batch` and the `NEXTSTRAIN_BUILD_LOG` file exists
- if: ${{ always() && inputs.runtime == 'aws-batch' && hashFiles(env.NEXTSTRAIN_BUILD_LOG) != '' }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pathogen-repo-build.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,15 @@ jobs:
# shellcheck disable=SC2154
set -x

exit_status=0
# tee build output to .git/ to avoid
# https://github.com/nextstrain/.github/issues/77#issuecomment-1998652064
# After build is complete, move .git/build.log to the working directory
# so this is kept as an implementation detail
eval "$NEXTSTRAIN_BUILD_COMMAND" |& tee .git/"$NEXTSTRAIN_BUILD_LOG"
eval "$NEXTSTRAIN_BUILD_COMMAND" |& tee .git/"$NEXTSTRAIN_BUILD_LOG" || exit_status=$?

mv .git/"$NEXTSTRAIN_BUILD_LOG" "$NEXTSTRAIN_BUILD_LOG"
exit $exit_status

# Attempt to get the AWS Batch ID even if the run build command failed
# as long as the runtime is `aws-batch` and the `NEXTSTRAIN_BUILD_LOG` file exists
Expand Down
Loading