Skip to content

Commit

Permalink
FIX: return the full list of static build link to builds.txt and use it
Browse files Browse the repository at this point in the history
as base for generation of newer build lists in case there isn't enough
new builds.
  • Loading branch information
Paliak committed Jul 11, 2024
1 parent 04dfbed commit 929fb8d
Show file tree
Hide file tree
Showing 2 changed files with 499 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/updatebuildlist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
update-builds-list:
runs-on: ubuntu-22.04
steps:
- name: Checkout HEAD
uses: actions/checkout@v4
- name: Install moreutils
run: sudo apt-get install -y moreutils
- name: Download latest build list
Expand All @@ -18,11 +20,11 @@ jobs:
path: /tmp/latestbuildlist/
- name: Update list
run: >
cat /tmp/latestbuildlist/builds.txt
cat spec/builds.txt /tmp/latestbuildlist/builds.txt
<({ curl "https://pobarchives.com/api/builds?q=latest" & curl "https://pobarchives.com/api/builds?q=trending"; }
| jq -r '.builds[].build_info.build_link')
| sort -u
| tail -n 500
| sort -u
| sponge builds.txt
- name: Print new builds list
run: cat builds.txt
Expand Down
Loading

0 comments on commit 929fb8d

Please sign in to comment.