Fix extracting ghcr download count

master
Michele Locati 2025-01-07 23:22:09 +01:00
parent 174a85941d
commit b579578985
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 1 additions and 1 deletions

View File

@ -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