Nextcloud: parse Github tags
This commit is contained in:
parent
83d5ac8517
commit
296c05aa48
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ class NextcloudServer extends PatchBase {
|
||||||
parent::__construct('Nextcloud GmbH', 'Nextcloud Server', 'https://nextcloud.com/install/');
|
parent::__construct('Nextcloud GmbH', 'Nextcloud Server', 'https://nextcloud.com/install/');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch('https://nextcloud.com/install/'))
|
if ($this->fetch_json('https://api.github.com/repos/nextcloud/server/releases/latest'))
|
||||||
return $this->parse('_//download\.nextcloud\.com/server/releases/nextcloud-([\d\.]+)\.zip_');
|
return $this->parse_json('tag_name');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue