Skip to content

Commit

Permalink
Fix extracting ghcr download count
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Jan 7, 2025
1 parent 174a859 commit b579578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-ghcr-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: |
$response = Invoke-WebRequest -Uri https://github.com/mlocati/docker-php-extension-installer/pkgs/container/php-extension-installer -ErrorAction Stop
$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'
}
$count = $Matches.count
Expand Down

0 comments on commit b579578

Please sign in to comment.