Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the output to the output of the charmcraft CLI #154

Open
yhaliaw opened this issue Jan 13, 2025 · 0 comments
Open

Set the output to the output of the charmcraft CLI #154

yhaliaw opened this issue Jan 13, 2025 · 0 comments
Labels

Comments

@yhaliaw
Copy link

yhaliaw commented Jan 13, 2025

Enhancement Proposal

For actions such as upload-charm, charmcraft would output a JSON formatted message.
https://juju.is/docs/sdk/charmcraft-upload

Can the output of the action also have the output set to this JSON message?
https://github.com/canonical/charming-actions/blob/main/upload-charm/README.md

For my use case, I need to the error message from the charmcraft upload and process it in the next job step.
E.g.:

{
    "errors": [
        {
            "code": "review-error",
            "message": "Cannot insert package. An upload with that digest (SHA3-384: 'fdd098ab9c62a6b98fd3001201760b041197bf4c4114af0adf0f9f72ba0858f9da1a61cd654e0511f38f8c7d40c4[32](https://github.com/canonical/content-cache-operator/actions/runs/12722144608/job/35503821786#step:7:33)44') already exists in the database. Revision of the existing package is: 7"
        }
    ]
}
@yhaliaw yhaliaw added Status: Triage Type: Enhancement New feature or request labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant