diff --git a/.github/workflows/update-loc.yml b/.github/workflows/update-loc.yml index aad590e..ea325fe 100644 --- a/.github/workflows/update-loc.yml +++ b/.github/workflows/update-loc.yml @@ -1,8 +1,6 @@ name: Update Lines of Code on: - schedule: - - cron: '0 0 * * 0' workflow_dispatch: jobs: diff --git a/update.py b/update.py index 1cb533a..820a84c 100644 --- a/update.py +++ b/update.py @@ -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]