Skip to content

Commit

Permalink
Update package.py
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic authored Oct 31, 2024
1 parent 3b8d2de commit bd5b622
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def upload_asset_to_release(repo, release_id, asset_path, token, delete_existing
asset_name = os.path.basename(asset_path)
url = f'https://api.github.com/repos/{repo}/releases/{release_id}/assets'
headers = {
'Authorization': f'token {token}'
'Authorization': f'token {token}',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'
}

# Handle pagination to get all assets
Expand Down

0 comments on commit bd5b622

Please sign in to comment.