Skip to content

Annotations using environment files #1743

Description

@alcuadrado

Describe the enhancement
I think it would be valuable to be able to set an annotation without it being printed to stdout, as currently, they can lead to duplicated output.

For example, I'm working on a node:test reporter that outputs failures for the user in the CLI and also annotates the PRs when running on GitHub actions. I use core.error() for the latter, but that leads to duplicated error messages.

If I could write to an environment file instead, it would lead to a tidier experience.

Additional information
There are other pieces of functionality that can work either by printing output or by concatenating commands into a file whose path is available as an env variable. That mechanism may be reusable for annotations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions