Skip to content

Commit

Permalink
Only output to GITHUB_STEP_SUMMARY in a CI environment
Browse files Browse the repository at this point in the history
  • Loading branch information
DianQK committed Apr 9, 2024
1 parent 9ed6e60 commit d92f01a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ci/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ docker \
rust-ci \
"${command[@]}"

cat $objdir/${SUMMARY_FILE} >> "${GITHUB_STEP_SUMMARY}"
if isCI; then
cat $objdir/${SUMMARY_FILE} >> "${GITHUB_STEP_SUMMARY}"
fi

if [ -f /.dockerenv ]; then
rm -rf $objdir
Expand Down

0 comments on commit d92f01a

Please sign in to comment.