Skip to content

Commit aa8bb70

Browse files
committed
Fix status
1 parent 48f23e4 commit aa8bb70

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/api.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ jobs:
101101
echo "Polling Cloud Build Status..."
102102
while true; do
103103
STATUS=$(gcloud builds describe "$BUILD_ID" --region=global --project=httpsms-86c51 --format="value(status)")
104-
echo -e " \033[90m$(date -u '+%Y-%m-%d %H:%M:%S UTC')\033[0m status=\"$STATUS\""
104+
LOCAL_TIME=$(date -u '+%Y-%m-%d %H:%M:%S UTC')
105+
echo -e " \033[90m${LOCAL_TIME}\033[0m status=\033[36m${STATUS}\033[0m"
105106
case "$STATUS" in
106107
SUCCESS) echo -e "\033[32mBuild succeeded!\033[0m"; exit 0 ;;
107108
FAILURE|TIMEOUT|CANCELLED|EXPIRED|INTERNAL_ERROR) echo -e "\033[31mBuild failed with status: $STATUS\033[0m"; exit 1 ;;

0 commit comments

Comments
 (0)