How to enrich / add text in a simple way an annotation ?

Hello,

I wanted to know if it’s possible in a simple way to add more information when a task fails to the “Annotation” popin.

Right now, if a run fails, it simply displays the error like Process completed with exit code 1.but you lack of “quick context”

Example of task: 

- name: Runs phpspec
      run: |
        php -v
        php bin/phpspec run -f pretty
      if: always()

What I want to display in the “Annotation” popin:

“Run phpspec” (= task name) task failed, did you follow the internal guide ?

Here an example in the screenshot of how “annotation popin” lack of context for “run” command out of the box.

Thanks

Sorry to tell you that currently you could not add more information when a task fails to the “Annotation” popin. But we are looking into ways to improve annotation experience!

In addition, github actions provide a way to set a warning or error message , these warning and error message could show on annotations. Please refer to: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions#set-a-warning-message-warning  

2 Likes