Skip to content

Fix global.json creation command#694

Merged
HarithaVattikuti merged 1 commit into
actions:mainfrom
michal2612:patch-1
Jun 23, 2026
Merged

Fix global.json creation command#694
HarithaVattikuti merged 1 commit into
actions:mainfrom
michal2612:patch-1

Conversation

@michal2612

Copy link
Copy Markdown
Contributor

Currently line that adds additional JSON to global.json fails GitHub workflow with:

Invalid workflow file: .github/workflows/build.yaml#L146
You have an error in your yaml syntax on line 146

Copilot explanation:

YAML Parsing and Special Characters
Single-line syntax: When you use run: followed by content on the same line, YAML parses it as a plain scalar. The > character in your command is interpreted as part of the YAML syntax (specifically, a folded scalar indicator) rather than a shell redirection operator.
Multi-line block scalar (|): The pipe | tells YAML to treat everything that follows as a literal block scalar, preserving newlines and special characters exactly as written. The > is now correctly interpreted by the shell as a redirection operator.

Updated the command to create global.json for better readability and execution.
@michal2612 michal2612 requested a review from a team as a code owner January 16, 2026 13:30
Copilot AI review requested due to automatic review settings January 16, 2026 13:30
@michal2612 michal2612 changed the title Fuxeglobal.json creation command fixed global.json creation command Jan 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a YAML syntax error in the GitHub workflow example documentation. The issue occurred because the shell redirection operator > was being misinterpreted by YAML as a folded scalar indicator when used in a single-line run: command.

Changes:

  • Updated the "Create temporary global.json" step in the README.md example to use multi-line block scalar syntax (run: |) instead of single-line syntax

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
@michal2612 michal2612 changed the title fixed global.json creation command Fix global.json creation command Jan 16, 2026
@HarithaVattikuti HarithaVattikuti merged commit 9bd3b44 into actions:main Jun 23, 2026
8 of 9 checks passed
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.

5 participants