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

Annotations using environment files #1743

Open
alcuadrado opened this issue Jun 2, 2024 · 0 comments
Open

Annotations using environment files #1743

alcuadrado opened this issue Jun 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@alcuadrado
Copy link

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.

@alcuadrado alcuadrado added the enhancement New feature or request label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant