diff --git a/.github/workflows/update-query-hashes.yml b/.github/workflows/update-query-hashes.yml index 17c7bfd..f5925f3 100644 --- a/.github/workflows/update-query-hashes.yml +++ b/.github/workflows/update-query-hashes.yml @@ -1,8 +1,8 @@ name: Update query hashes on: - # schedule: - # - cron: '30 * * * *' + schedule: + - cron: '30 * * * *' workflow_dispatch: jobs: @@ -13,8 +13,16 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Download file from URL - run: curl -o app/splatnet/queryHashes.json https://raw.githubusercontent.com/imink-app/SplatNet3/master/Data/splatnet3_webview_data.json + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install dependencies + run: npm ci + + - name: Fetch query hashes + run: node utility/getQueryHashes.mjs > app/splatnet/queryHashes.json - name: Create PR uses: peter-evans/create-pull-request@v6