From 4a107b3d53c4fe651ac704251b99e04a53cd587f Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Tue, 16 Feb 2021 21:17:10 +0100 Subject: General: Fix folder query Signed-off-by: Sean Molenaar --- .github/workflows/api-integration-tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.github/workflows/api-integration-tests.yml') diff --git a/.github/workflows/api-integration-tests.yml b/.github/workflows/api-integration-tests.yml index 809d63e4c..29df1d65d 100644 --- a/.github/workflows/api-integration-tests.yml +++ b/.github/workflows/api-integration-tests.yml @@ -133,9 +133,10 @@ jobs: - name: Functional tests items working-directory: ../server run: | - ./occ news:item:list-feed "admin" $(./occ news:feed:list 'admin' | grep 'github\.com' -1 | head -1 | grep -oE '[0-9]*') --limit 200 | grep '15.3.2' - ./occ news:item:list-folder "admin" --limit 200 | grep '15.3.2' - ./occ news:item:list "admin" --limit 200 | grep '15.3.2' + TAG=$(curl --silent "https://api.github.com/repos/nextcloud/news/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') + ./occ news:item:list-feed "admin" $(./occ news:feed:list 'admin' | grep 'github\.com' -1 | head -1 | grep -oE '[0-9]*') --limit 200 | grep "$TAG" + ./occ news:item:list-folder "admin" --limit 200 | grep "$TAG" + ./occ news:item:list "admin" --limit 200 | grep "$TAG" - name: Functional tests opml working-directory: ../server -- cgit v1.2.3