-
Notifications
You must be signed in to change notification settings - Fork 210
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
feat: github actions logging #752
feat: github actions logging #752
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool idea! But I don't think it warrants bringing in additional dependencies. Luckily we can achieve the same by simply outputting in their expected format: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-a-notice-message
I actually went without the dependency in the first place but realized that it contains a function for escaping the data and thought that using it would keep it more consistent. I'm happy to remove the dependency and import that single function if you still think importing the dependency is overkill. |
Yeah, it's definitely better to avoid the extra dependency. It also seems that all we need escaping is the odd |
Co-authored-by: João Moreno <mail@joaomoreno.com>
🎉 This PR is included in version 2.10.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR adds support for logging in GitHub Actions runners using annotations.
Description
When the
GITHUB_ACTIONS
environment variable is set, instead of logging a message withconsole.log
, a GitHub Actions workflow command is used to log the message.