Skip to content

Commit

Permalink
WIP: testing builds.txt update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak committed Jun 28, 2024
1 parent 6ceb81f commit 6f4d79b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 506 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
cancel-in-progress: true
jobs:
run_build_diff:
if: github.repository == 'PathOfBuildingCommunity/PathOfBuilding'
#if: github.repository == 'PathOfBuildingCommunity/PathOfBuilding'
runs-on: ubuntu-latest
steps:
- name: Checkout HEAD
Expand All @@ -25,6 +25,11 @@ jobs:
with:
path: /tmp/cache/
key: '${{ steps.get-dev-ref.outputs.devref }}'
- name: Download new build list
uses: actions/cache@v4
with:
path: spec/builds.txt
key: 'builds.txt'
- name: Make sure cache is readable by docker
run: chmod -R 777 /tmp/cache
- name: Run build diff
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/updatebuildlist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@ on:
workflow_dispatch:
jobs:
push-beta:
if: github.repository == 'PathOfBuildingCommunity/PathOfBuilding'
#if: github.repository == 'PathOfBuildingCommunity/PathOfBuilding'
runs-on: ubuntu-22.04
steps:
- name: Checkout HEAD
uses: actions/checkout@v4
- name: Download old build list
uses: actions/download-artifact@v4
uses: actions/cache@v4
with:
name: test-build-list
path: spec/builds.txt
key: 'builds.txt'
- 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
Loading

0 comments on commit 6f4d79b

Please sign in to comment.