fix(ci): skip malformed _extension.yml instead of aborting run#299
Merged
fix(ci): skip malformed _extension.yml instead of aborting run#299
Conversation
A single _extension.yml that fails YAML parsing was enough to abort the whole Quarto Wizard run via set -e -o pipefail, leaving every other entry unprocessed. Guard each yq invocation, emit a GitHub warning annotation on failure, and default the jq aggregator to an empty array so an all-null stream no longer triggers "Cannot iterate over null".
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.
A single
_extension.ymlthat fails YAML parsing was enough to abort the wholeQuarto Wizardrun viaset -e -o pipefail, leaving every other entry unprocessed.This happened on run 24622834684 when processing
sebastiansauer/quarto-typst-academic-templateat itszenodorelease tag, where_extensions/aufsatz/_extension.ymlcontains an unquoted colon in the title value.extract_extension_manifestnow guards eachyqinvocation, emits a::warning title=Invalid Extension Manifest::...annotation on failure, and continues to the next file.The
jqaggregator defaults to an empty array so a stream with no parseable manifests no longer triggersCannot iterate over null.