Skip to content

Commit 82713c9

Browse files
committed
edited Azure VM check
1 parent f613f34 commit 82713c9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,8 @@ jobs:
125125
echo "Error: $OUTPUT"
126126
echo "azure_status=unknown" >> $GITHUB_ENV
127127
else
128-
# Parse the output
129-
echo "Parsing output..."
130-
stdout_content=$(echo "$OUTPUT" | jq -r '.value[0].message' 2>/dev/null | grep -oP '\[stdout\]\K.*' | sed 's/\\n/\n/g')
131-
132128
# Determine the status based on output
129+
stdout_content="$OUTPUT"
133130
echo "Determing Azure VM Instance status..."
134131
if echo "$stdout_content" | grep -q "NO_CONTAINERS"; then
135132
echo "✓ No Docker containers running on Azure VM - VM is available"

0 commit comments

Comments
 (0)