Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Combine write to file and STDOUT in one command using `tee` (#3676)

Dhruv Bhanushalifb0fdd94359b
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 875edd57f..f5334d6e7 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -199,8 +199,7 @@ jobs:
- name: Prepare build args
id: prepare-build-args
run: |
- just versions
- just versions >> "$GITHUB_OUTPUT"
+ just versions | tee "$GITHUB_OUTPUT"
# ℹ️Step only applies for frontend image.
# This step
@@ -744,8 +743,7 @@ jobs:
$EOF
HEREDOC
)
- echo "$MESSAGE"
- echo "$MESSAGE" >> "$GITHUB_OUTPUT"
+ echo "$MESSAGE" | tee "$GITHUB_OUTPUT"
- uses: peter-evans/create-or-update-comment@v3
id: create-comment