Repository navigation
Support jobs running in a Python container without jq - #8
Merged
Merged
Conversation
As long as we have curl v7.76 (released 31 Mar 2021), we can use `--fail-with-body` to still print the response body in fail mode.
…esponses This can be helpful when running the Action in a container, where perhaps Python is available but jq is not.
Contributor
Author
|
Thanks, @minddrive! 🎉 |
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.
Currently this Action does not work for a job configured to run in a Python container such as
python:3.12:jq is available on GitHub's public runner images, so this is usually a reasonable assumption. If jq is not available, let's check if Python is, and if so fall back to plucking the desired JSON fields out of the API responses with it.
See our internal issue for more information. There's also some build maintenance we can do; see the individual commits.