Skip to content

Fix YAML parsing break in automated-release-blog-post workflow template#437

Merged
MohabMohie merged 3 commits into
masterfrom
copilot/fix-automated-release-blog-post-yml
Mar 31, 2026
Merged

Fix YAML parsing break in automated-release-blog-post workflow template#437
MohabMohie merged 3 commits into
masterfrom
copilot/fix-automated-release-blog-post-yml

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

The automated release blog workflow was failing before job execution due to YAML being broken by unindented markdown frontmatter (---) inside the embedded Node script. This PR keeps workflow behavior intact while making the inline template YAML-safe.

  • Root cause

    • In .github/workflows/automated-release-blog-post.yml, the blogPost template literal inside run: | had multiline content starting at column 1.
    • Frontmatter delimiters were interpreted as YAML document separators, invalidating the workflow file.
  • Change applied

    • Re-indented the embedded markdown template so all lines remain inside the YAML block scalar.
    • Preserved generated markdown format by stripping script indentation at runtime:
      • .replace(/^ {10}/gm, '').trimStart()
  • Scope

    • Single-file, workflow-only change.
    • No change to release selection logic, contributor/changelog generation, file naming, or commit behavior.
const blogPost = `
          ---
          slug: release-${safeTag}
          title: "🚀 SHAFT ${tag}: What's New and Why You Should Upgrade Today"
          ...
          `
  .replace(/^ {10}/gm, '')
  .trimStart();

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 31, 2026

Deploy Preview for shaftengine ready!

Name Link
🔨 Latest commit bfe0a7d
🔍 Latest deploy log https://app.netlify.com/projects/shaftengine/deploys/69cc3435a4fa320008bab5b0
😎 Deploy Preview https://deploy-preview-437--shaftengine.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 88
Accessibility: 93
Best Practices: 100
SEO: 100
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@MohabMohie MohabMohie force-pushed the copilot/fix-automated-release-blog-post-yml branch from 7898a27 to 4968ffa Compare March 31, 2026 20:49
@MohabMohie MohabMohie marked this pull request as ready for review March 31, 2026 20:49
Co-authored-by: MohabMohie <19201898+MohabMohie@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix automated release blog post configuration Fix YAML-safe release blog template generation in automated workflow Mar 31, 2026
Copilot AI requested a review from MohabMohie March 31, 2026 20:50
Copilot AI changed the title Fix YAML-safe release blog template generation in automated workflow Fix YAML parsing break in automated-release-blog-post workflow template Mar 31, 2026
@MohabMohie MohabMohie merged commit 699d52c into master Mar 31, 2026
6 of 7 checks passed
@MohabMohie MohabMohie deleted the copilot/fix-automated-release-blog-post-yml branch March 31, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants