fix to specify release id

This commit is contained in:
James 2020-01-29 18:08:51 +00:00
parent 920b8a3cc1
commit 7fada2c155

View File

@ -40,7 +40,7 @@ final class Poster{
$img=''; $img='';
$name=$testcase->attributes()->class[0]."::".$testcase->attributes()->name[0]; $name=$testcase->attributes()->class[0]."::".$testcase->attributes()->name[0];
if(file_exists("/tmp/$name.png")){ if(file_exists("/tmp/$name.png")){
$data=$this->repo->addAttachment("/tmp/$name.png"); $data=$this->repo->addReleaseAttachment(1,"/tmp/$name.png");
$url=$data->browser_download_url; $url=$data->browser_download_url;
$img="\n![]($url)\n"; $img="\n![]($url)\n";
unlink("/tmp/$name.png"); unlink("/tmp/$name.png");