Fix extracting ghcr download count
parent
174a85941d
commit
b579578985
|
@ -21,7 +21,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
$response = Invoke-WebRequest -Uri https://github.com/mlocati/docker-php-extension-installer/pkgs/container/php-extension-installer -ErrorAction Stop
|
$response = Invoke-WebRequest -Uri https://github.com/mlocati/docker-php-extension-installer/pkgs/container/php-extension-installer -ErrorAction Stop
|
||||||
$html = $response.Content -replace '\s+', ' '
|
$html = $response.Content -replace '\s+', ' '
|
||||||
if (-not($html -match 'Total downloads.*?> *(?<count>\d+\w*)')) {
|
if (-not($html -match 'Total downloads.*?> *(?<count>\d+(\.\d+)?\w*)')) {
|
||||||
throw 'Unable to find the total downloads count'
|
throw 'Unable to find the total downloads count'
|
||||||
}
|
}
|
||||||
$count = $Matches.count
|
$count = $Matches.count
|
||||||
|
|
Loading…
Reference in New Issue