From fb0fdd94359bfc282724a15de2cca68254dab8dc Mon Sep 17 00:00:00 2001 From: Dhruv Bhanushali Date: Mon, 22 Jan 2024 19:15:30 +0400 Subject: [PATCH] Combine write to file and STDOUT in one command using `tee` (#3676) --- .github/workflows/ci_cd.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 875edd57f70..f5334d6e7a7 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