summaryrefslogtreecommitdiffstats
path: root/.github/workflows/api-integration-tests.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/api-integration-tests.yml')
-rw-r--r--.github/workflows/api-integration-tests.yml7
1 files changed, 4 insertions, 3 deletions
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