Writing messages to the log
What problem matchers do based on existing result files can also be achieved by writing individual warning or error events to the log by also using workflow commands. In this recipe, we will add some output to our workflow and annotate our workflow file.
Getting ready…
Make sure you still have your pull request from the previous recipe open. Just use VS Code to add additional changes, and pushing will automatically trigger the workflow.
How to do it…
- Open
.github/workflows/DevelopInBranch.yml
in thenew-workflow
branch in VS Code and add the following code snipped directly before the checkout action:- run: | echo "::debug::This is a debug message." echo "::notice::This is a notice message." echo...