create-or-update-comment
create-or-update-comment copied to clipboard
Post comment with image
Would be great if it would be possible to create a comment with a image.
I think it would be useful after creating github action local images (like screenshots) and post the image(s) with this action in a comment (like a user can copy/paste images in a regular comment)
In the end it would be helpful when the image urls would be available as output variable to re-use the image urls for other action steps
Hi @staabm
That would be a nice feature. Unfortunately it doesn't seem possible with GitHub's API. See https://stackoverflow.com/questions/28703544/create-an-issue-with-image-via-github-api
My advice would be to upload the image somewhere in a separate step and then use the URL in the comment. Perhaps you could use a Gist or maybe some service like Imgur.