Skip to content

Annotations, how to create them? #26703

Answered by BrightRan
sblantipodi asked this question in Actions
Discussion options

You must be logged in to vote

You can use the following Workflow commands to create W** arning  and Error** annotations in the workflow:

Setting a warning message

for example:

- name: Generate Warning Annotations
  run: |
    text="This is a Warning"
    echo "::warning file=app.js,line=1,col=5::$text"

◆ Setting an error message

for example:

- name: Generate Error Annotations
  run: |
    text="This is an Error"
    echo "::error file=app.js,line=10,col=15::$text"

NOTE:  currently, GitHub Actions does not support too much annotations in a workflow run, the below is a summary of the limitation:

  • 10 warning annotations and 10 error annotations for per step
  • 50 annotations for per job (sum of annotations from all the…

Replies: 11 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ucyo
Comment options

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