Skip to content

Commit 1442b41

Browse files
committed
tee
1 parent 95415c1 commit 1442b41

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/actions/deploy-to-control-plane/scripts/deploy.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ fi
2929
TEMP_OUTPUT=$(mktemp)
3030
trap 'rm -f "$TEMP_OUTPUT"' EXIT
3131

32-
last_output=$(cpln workload get 2>&1)
33-
echo "$last_output"
32+
cpln workload get | tee
3433

3534
# Deploy the application
3635
echo "🚀 Deploying to Control Plane (timeout: ${WAIT_TIMEOUT}s)"

.github/workflows/deploy-to-control-plane-review-app.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ jobs:
178178
if ! cpflow exists -a ${{ env.APP_NAME }}; then
179179
echo "APP_EXISTS=false" >> $GITHUB_ENV
180180
else
181-
last_output=$(cpln workload get 2>&1)
182-
echo "$last_output"
181+
cpln workload get | tee
183182
echo "APP_EXISTS=true" >> $GITHUB_ENV
184183
fi
185184

0 commit comments

Comments
 (0)