Skip to content

Commit

Permalink
WIP: try using artefacts instead as cache cannot be overwritten
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak committed Jun 28, 2024
1 parent 8bc9c90 commit 0790003
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/updatebuildlist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,28 @@ jobs:
update-builds-list:
#if: github.repository == 'PathOfBuildingCommunity/PathOfBuilding'
runs-on: ubuntu-22.04
permissions:
actions: read
steps:
- name: Install moreutils
run: sudo apt-get install -y moreutils
- name: Checkout HEAD
uses: actions/checkout@v4
- name: Download old build list
uses: actions/cache/restore@v4
- name: Install moreutils
run: sudo apt-get install -y moreutils
- name: Download latest build list
uses: actions/download-artifact@v4
with:
name: 'builds.txt'
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
path: spec/builds.txt
key: 'builds.txt'
- name: Update list
run: cat spec/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 spec/builds.txt
- name: Print builds list
run: cat spec/builds.txt
- name: Save new build list
uses: actions/cache/save@v4
uses: actions/upload-artifact@v4
with:
name: 'builds.txt'
path: spec/builds.txt
key: 'builds.txt'
overwrite: true

0 comments on commit 0790003

Please sign in to comment.