Skip to content

Commit

Permalink
Consider more builds when looking for published snapshot
Browse files Browse the repository at this point in the history
Instead of filtering the builds to 1 and then
assuming we can select "published" from that list
this commit changes the lookup to read the default
number of builds, which is by default 10, and then
selects the latest published.

References:
 * https://progress.opensuse.org/issues/165722
 * os-autoinst/os-autoinst-distri-opensuse@2599029
  • Loading branch information
baierjan committed Aug 23, 2024
1 parent 7c9d4ee commit aad176c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/openqa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
run: >-
echo build=$(openqa-cli api
--host ${OPENQA_HOST:-https://openqa.opensuse.org}
job_groups/${OPENQA_GROUP_ID:-1}/build_results limit_builds=1 only_tagged=1
| jq -r '[ .build_results[] | select(.tag.description=="published") | .build ][]'
job_groups/${OPENQA_GROUP_ID:-1}/build_results only_tagged=1
| jq -r '[ .build_results[] | select(.tag.description=="published") | .build ][0]'
) >> "$GITHUB_OUTPUT"
- name: Link to test result overview page
run: >-
Expand Down

0 comments on commit aad176c

Please sign in to comment.