mirror of
https://github.com/rommapp/romm.git
synced 2026-06-27 22:35:57 +00:00
Add github action to update HLTB API url
This commit is contained in:
36
.github/workflows/update-hltb-api-url.yml
vendored
Normal file
36
.github/workflows/update-hltb-api-url.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user