Skip to content

Commit

Permalink
FEAT: add automatic test build list update
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak committed Mar 25, 2024
1 parent 82248ec commit 469115d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/updatebuildlist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Update build list for tests
on:
schedule:
- cron: '20 4 * * *'
workflow_dispatch:

jobs:
push-beta:
if: github.repository == 'PathOfBuildingCommunity/PathOfBuilding'
runs-on: ubuntu-22.04
steps:
- name: Download old build list
uses: actions/download-artifact@v4
with:
name: test-build-list
- name: Update list
run: |
cat 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 | sponge builds.txt
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: test-build-list
path: builds.txt
overwrite: true
if-no-files-found: error


0 comments on commit 469115d

Please sign in to comment.