Skip to content

Commit

Permalink
Combine write to file and STDOUT in one command using tee (#3676)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored Jan 22, 2024
1 parent fad375e commit fb0fdd9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fb0fdd9

Please sign in to comment.