Skip to content

Commit

Permalink
[WinCairo] Read GITHUB_TOKEN from env when updating WebKitRequirements
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=265373

Reviewed by Don Olmstead.

Read the API token from env and add it accordingly if set.

* Tools/Scripts/update-webkit-wincairo-libs.py:

Canonical link: https://commits.webkit.org/271154@main
  • Loading branch information
mxschmitt authored and donny-dont committed Nov 27, 2023
1 parent 08ff1e4 commit 46ea518
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tools/Scripts/update-webkit-wincairo-libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
output = os.getenv('WEBKIT_LIBRARIES', 'WebKitLibraries/win')
options = [repo, file, '-o', output]

if os.getenv('GITHUB_TOKEN'):
options += ['-t', os.getenv('GITHUB_TOKEN')]

# Check if there's a specific version to request
config_path = os.path.join(output, file) + '.config'
if os.path.exists(config_path):
Expand Down

0 comments on commit 46ea518

Please sign in to comment.