From 5267c555a41bed37f5d497fcd2746fab2dffdb7d Mon Sep 17 00:00:00 2001 From: Matt Isenhower Date: Sun, 13 Aug 2023 20:46:17 -0700 Subject: [PATCH] Add a GitHub action for automatically updating query hashes --- .github/workflows/update-query-hashes.yml | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/update-query-hashes.yml diff --git a/.github/workflows/update-query-hashes.yml b/.github/workflows/update-query-hashes.yml new file mode 100644 index 0000000..d5f4269 --- /dev/null +++ b/.github/workflows/update-query-hashes.yml @@ -0,0 +1,25 @@ +name: Update query hashes + +on: + schedule: + - cron: '30 * * * *' + +jobs: + check-and-create-pr: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - 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: Create PR + uses: peter-evans/create-pull-request@v3 + with: + title: Update query hashes + commit-message: Update query hashes + branch: update-query-hashes + body: Update query hashes + delete-branch: true