Skip to content

Commit

Permalink
Implemented Filter to avoid pageing
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsiegl committed Sep 30, 2022
1 parent b242fb5 commit 8ad0af0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/downloadPostCommitXmi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- review_requested

env:
xmiURL: https://nexus.lieberlieber.com/service/rest/v1/components?repository=xmi
xmiURL: https://nexus.lieberlieber.com/service/rest/v1/search?repository=xmi


jobs:
Expand All @@ -36,7 +36,9 @@ jobs:
run: |
$gitcommitId = git rev-parse origin/$env:GITHUB_HEAD_REF
Echo "git CommitId: $gitcommitId"
$json = Invoke-RestMethod -Uri ${{env.xmiURL}} -Method Get
$url = "${{env.xmiURL}}&name=$gitcommitId*"
Echo $url
$json = Invoke-RestMethod -Uri $url -Method Get
foreach ($url in $json.items.assets.downloadUrl)
{
$url = $url.Insert(4,"s")
Expand Down

0 comments on commit 8ad0af0

Please sign in to comment.