fix(workflows): correct JSON output formatting in plugin discovery step#531
Merged
WilliamBerryiii merged 1 commit intomainfrom Feb 13, 2026
Merged
fix(workflows): correct JSON output formatting in plugin discovery step#531WilliamBerryiii merged 1 commit intomainfrom
WilliamBerryiii merged 1 commit intomainfrom
Conversation
🔧 - Generated by Copilot
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
WilliamBerryiii
approved these changes
Feb 13, 2026
katriendg
approved these changes
Feb 13, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes the plugin collection discovery output in the reusable plugin-package.yml GitHub Actions workflow so the discovered matrix JSON is emitted in a single line, making it compatible with $GITHUB_OUTPUT and preventing matrix parsing failures.
Changes:
- Update the discovery step’s
jqinvocation to use compact output (jq -sc '{include: .}') so the workflow output is single-line JSON.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #531 +/- ##
==========================================
- Coverage 85.36% 85.34% -0.03%
==========================================
Files 23 23
Lines 4475 4475
==========================================
- Hits 3820 3819 -1
- Misses 655 656 +1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
This was referenced Feb 13, 2026
agreaves-ms
pushed a commit
that referenced
this pull request
Feb 13, 2026
🤖 I have created a release *beep* *boop* --- ## [2.3.1](hve-core-v2.3.0...hve-core-v2.3.1) (2026-02-13) ### 🐛 Bug Fixes * **build:** remove draft flag that prevents release tag creation ([#533](#533)) ([c8de0aa](c8de0aa)) * **workflows:** correct JSON output formatting in plugin discovery step ([#531](#531)) ([910fb8b](910fb8b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: hve-core-release-please[bot] <254602402+hve-core-release-please[bot]@users.noreply.github.com>
This was referenced Feb 13, 2026
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.
fix(workflows): correct JSON output formatting in plugin discovery step
Description
Fixed the plugin collection discovery step in the
plugin-package.ymlworkflow by adding the compact output flag (-c) to thejqcommand. Without compact output,jq -sproduced multi-line pretty-printed JSON that broke the$GITHUB_OUTPUTmechanism in GitHub Actions, preventing the matrix strategy from parsing the discovered plugin collections correctly.-c(compact) flag tojq -sin the plugin discovery step, changingjq -s '{include: .}'tojq -sc '{include: .}'to produce single-line JSON output compatible with$GITHUB_OUTPUT.Related Issue(s)
N/A
Type of Change
Select all that apply:
Code & Documentation:
Infrastructure & Configuration:
AI Artifacts:
prompt-builderagent and addressed all feedback.github/instructions/*.instructions.md).github/prompts/*.prompt.md).github/agents/*.agent.md).github/skills/*/SKILL.md)Other:
.ps1,.sh,.py)Testing
jq -sc '{include: .}'produces single-line JSON suitable for GitHub Actions matrix output.Checklist
Required Checks
Required Automated Checks
The following validation commands must pass before merging:
npm run lint:mdnpm run spell-checknpm run lint:frontmatternpm run lint:md-linksnpm run lint:psSecurity Considerations
Additional Notes
The
jq -s(slurp) flag correctly aggregates JSON objects into an array, but its default pretty-printed output spans multiple lines. GitHub Actions$GITHUB_OUTPUTrequires values to be on a single line. The-c(compact) flag resolves this by ensuring the JSON is emitted as a single line.🔧 Generated by Copilot