Run apt update to install ImageMagick in CI workflow

We've been getting an error in our CI because some the Ubuntu 24.04
image in GitHub Actions doesn't have an updated package database:

```
E: Failed to fetch mirror+file:
   pool/main/g/ghostscript/libgs-common_10.02.1%7edfsg1-0ubuntu7.4_all.deb
   404  Not Found
E: Failed to fetch mirror+file:
   pool/main/g/ghostscript/libgs10-common_10.02.1%7edfsg1-0ubuntu7.4_all.deb
   404  Not Found
E: Failed to fetch mirror+file:
   pool/main/g/ghostscript/libgs10_10.02.1%7edfsg1-0ubuntu7.4_amd64.deb
   404  Not Found
E: Failed to fetch mirror+file:
   pool/main/g/ghostscript/ghostscript_10.02.1%7edfsg1-0ubuntu7.4_amd64.deb
   404  Not Found
E: Unable to fetch some archives, maybe run apt-get update
   or try with --fix-missing?
```

Running `sudo apt-get update` before trying to install a package solves
the issue.
This commit is contained in:
Javi Martín
2025-03-30 18:41:45 +02:00
parent 80bba21d67
commit a3844dcab5

View File

@@ -47,7 +47,7 @@ jobs:
- name: Install node packages - name: Install node packages
run: npm clean-install run: npm clean-install
- name: Install ImageMagick - name: Install ImageMagick
run: sudo apt-get install imagemagick run: sudo apt-get update && sudo apt-get install imagemagick
- name: Remove image-bundled Chrome - name: Remove image-bundled Chrome
run: sudo apt-get purge google-chrome-stable run: sudo apt-get purge google-chrome-stable
- name: Setup Chrome/Chromium 128 - name: Setup Chrome/Chromium 128