Skip to content

Commit 0ddebe4

Browse files
committed
Fix YAML syntax errors in delete-inactive-tailnet-nodes workflow
- Remove control characters that were causing YAML parsing errors - Clean up echo statements to remove special characters - Add proper newline at end of file - Ensure workflow only runs on manual trigger (workflow_dispatch)
1 parent ef822c6 commit 0ddebe4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/delete-inactive-tailnet-nodes.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ jobs:
166166
HTTP_STATUS=$(echo "$RESPONSE" | tail -n 1 | cut -d: -f2)
167167
168168
if [ "$HTTP_STATUS" = "200" ]; then
169-
echo " Successfully deleted device: $DEVICE_NAME"
169+
echo "Successfully deleted device: $DEVICE_NAME"
170170
SUCCESS_COUNT=$((SUCCESS_COUNT + 1))
171171
else
172-
echo "L Failed to delete device: $DEVICE_NAME (HTTP Status: $HTTP_STATUS)"
172+
echo "Failed to delete device: $DEVICE_NAME (HTTP Status: $HTTP_STATUS)"
173173
RESPONSE_BODY=$(echo "$RESPONSE" | sed '$d')
174174
echo "Error response: $RESPONSE_BODY"
175175
FAILED_COUNT=$((FAILED_COUNT + 1))
@@ -200,4 +200,4 @@ jobs:
200200
if: inputs.dry_run == false && steps.filter_devices.outputs.devices_count != '0'
201201
run: |
202202
echo "Fetching updated device list..."
203-
./tailscale/scripts/list-devices.sh "${{ steps.get_access_token.outputs.access_token }}" "${{ inputs.tailnet_name }}" table || true
203+
./tailscale/scripts/list-devices.sh "${{ steps.get_access_token.outputs.access_token }}" "${{ inputs.tailnet_name }}" table || true

0 commit comments

Comments
 (0)