From b828eb790661efbe8007bae6da16654b34307b58 Mon Sep 17 00:00:00 2001 From: Paul Gevers Date: Sat, 28 Oct 2023 22:58:30 +0200 Subject: [PATCH] watch: update to use github API --- debian/watch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/watch b/debian/watch index 13aca387..a461d8c4 100644 --- a/debian/watch +++ b/debian/watch @@ -1,4 +1,5 @@ version=4 -opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%siridb-server-$1.tar.gz%" \ - https://github.com/SiriDB/siridb-server/releases \ - (?:.*?/)?v?(\d[\d.]*)\.tar\.gz + opts="searchmode=plain,\ + filenamemangle=s%v?@ANY_VERSION@%@PACKAGE@-$1.tar.xz%" \ + https://api.github.com/repos/SiriDB/siridb-server/releases?per_page=50 \ + https://api.github.com/repos/[^/]+/[^/]+/tarball/v?@ANY_VERSION@ -- 2.30.2