Add github action to update HLTB API url

This commit is contained in:
Georges-Antoine Assi
2025-11-17 15:27:48 -05:00
parent 3d6ba6c766
commit 95c506aec0
4 changed files with 168 additions and 1 deletions

View File

@@ -0,0 +1,36 @@
name: Update HowLongToBeat API URL
on:
workflow_dispatch:
permissions:
contents: write
jobs:
update-hltb-api-url:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6.7.0
- name: Install python
run: |
uv python install 3.13
- name: Install dependencies
run: |
uv sync
- name: Run HLTB API URL discovery script
run: |
uv run python backend/utils/update_hltb_api_url.py
- name: Commit and push changes
uses: EndBug/add-and-commit@v9
with:
add: backend/handler/metadata/fixtures/hltb_api_url
message: "Update HLTB API URL [skip CI]"
push: true