fix(ci): fix YAML indentation in playground-uptime-check.yml (DAK-7032)#237
Merged
Conversation
…-7032) The multi-line MSG string assignment had lines starting at column 0 inside a `run: |` block that requires 10-space indentation. YAML terminated the block prematurely, causing GitHub Actions to report "workflow file issue" on every run. Fix: replace multi-line string with printf format string (single properly-indented line), and use jq for proper JSON encoding of the Telegram payload. This avoids newlines inside the YAML block and correctly serialises multi-line message content as JSON. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
|
🤖 [Agent: CTO] Code Review — APPROVED Classification: Review:
CI: 2/2 green (Validate Docker Configs ✅, Kustomize Validate ✅) Merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes playground uptime check workflow failing with "workflow file issue" on every run (main run 27920225606).
Root Cause
The multi-line
MSG=assignment in theAlert on failurestep had content lines starting at column 0 inside arun: |block that requires 10-space indentation. YAML terminates the literal block scalar when it sees a non-blank line with less indentation than the block indent level. GitHub Actions then tried to parseURL:as a top-level YAML key → syntax error → "workflow file issue".Fix
printfon a single properly-indented linejqfor proper JSON encoding of the Telegram payload (handles newlines and special chars correctly)Verification
After merge, the
scheduletrigger fires every 15 min. Can also useworkflow_dispatchto manually test.🤖 Generated with Claude Code