Skip to content

Commit ffbada8

Browse files
committed
Restore driver installation
1 parent 9ba6d06 commit ffbada8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/sponsors.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,5 @@ $links | Out-File ./sponsors.md -Force -Encoding UTF8
118118
write-host "Using chrome from $env:chrome"
119119

120120
Push-Location .github/avatars
121-
Get-ChildItem *.svg | %{ python ../workflows/sponsors.py "$($env.chrome)" "$($_.Name)" "$($_.BaseName).png" }
121+
Get-ChildItem *.svg | %{ python ../workflows/sponsors.py "$env.chrome" "$($_.Name)" "$($_.BaseName).png" }
122122
Pop-Location

.github/workflows/sponsors.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
import sys
33
from html2image import Html2Image
44

5-
chrome = sys.argv[1]
6-
75
# read entire contents of file in args[2] as input
86
with open(sys.argv[2], 'r', encoding='utf-8') as file:
97
input = file.read()
108

119
output = sys.argv[3]
10+
chrome = sys.argv[1]
1211

1312
hti = Html2Image(size=(39,39), browser_executable=chrome)
1413
hti.browser.print_command = True

.github/workflows/sponsors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
id: chrome
4040
with:
4141
chrome-version: ${{ github.event.inputs.chrome || vars.chrome || '1331469' }}
42+
install-chromedriver: true
4243

4344
- name: 🔽 html2image
4445
run: pip install --force-reinstall -v html2image==2.0.5

0 commit comments

Comments
 (0)