From b57957898526d4870ae1ae19f4ea5495bab46fb2 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 7 Jan 2025 23:22:09 +0100 Subject: [PATCH] Fix extracting ghcr download count --- .github/workflows/update-ghcr-badge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-ghcr-badge.yml b/.github/workflows/update-ghcr-badge.yml index cb1aca3..570f5cf 100644 --- a/.github/workflows/update-ghcr-badge.yml +++ b/.github/workflows/update-ghcr-badge.yml @@ -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.*?> *(?\d+\w*)')) { + if (-not($html -match 'Total downloads.*?> *(?\d+(\.\d+)?\w*)')) { throw 'Unable to find the total downloads count' } $count = $Matches.count