Fix redirect update

This commit is contained in:
Lovi 2025-02-07 20:32:20 +01:00
parent 8df59de933
commit 1d56b0c9d4
2 changed files with 1 additions and 3 deletions

View File

@ -1,8 +1,6 @@
name: Update Lines of Code
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:

View File

@ -126,7 +126,7 @@ def download_and_extract_latest_commit():
'Accept': 'application/vnd.github.v3+json',
'User-Agent': f'{__title__}-updater'
}
response = httpx.get(api_url, headers=headers, timeout=max_timeout)
response = httpx.get(api_url, headers=headers, timeout=max_timeout, follow_redirects=True)
if response.status_code == 200:
commit_info = response.json()[0]