From df411de0da8de681216e9a5d2cdc7d97243af5ae Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 30 Oct 2026 19:05:57 -0400 Subject: [PATCH] ci: fix imagemagick 6/7 check in phpunit-sqlite for new ubuntu-latest images https://github.blog/changelog/2026-09-17-ubuntu-26-generally-available-and-latest-migration/#ubuntu-latest-is-migrating-to-ubuntu-26-04 Signed-off-by: Josh --- .github/workflows/phpunit-sqlite.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/phpunit-sqlite.yml b/.github/workflows/phpunit-sqlite.yml index 18ef061de335f..d6969f370780e 100644 --- a/.github/workflows/phpunit-sqlite.yml +++ b/.github/workflows/phpunit-sqlite.yml @@ -62,7 +62,7 @@ jobs: # the delegate and allow the HEIC/HEIF/AVIF coders so decoding succeeds. sudo apt-get update sudo apt-get install -y --no-install-recommends libheif1 libheif-dev - for policy in /etc/ImageMagick-{6,7}/policy.xml; do + for policy in /etc/ImageMagick-[67]/policy.xml; do if [ -f "$policy" ]; then sudo sed -i -E 's/rights="none" pattern="(HEIC|HEIF|AVIF)"/rights="read|write" pattern="\1"/g' "$policy" fi @@ -112,5 +112,5 @@ jobs: if: always() run: | gs --version - cat /etc/ImageMagick-6/policy.xml + cat /etc/ImageMagick-[67]/policy.xml cat data/nextcloud.log