From 00000d9656b6c7f179708549740b609bcdc37893 Mon Sep 17 00:00:00 2001 From: doms9 <96013514+doms9@users.noreply.github.com> Date: Mon, 1 Sep 2025 20:09:16 -0400 Subject: [PATCH] e --- .github/workflows/m3u8.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/m3u8.yml b/.github/workflows/m3u8.yml index a9e93d7..e52cf6e 100644 --- a/.github/workflows/m3u8.yml +++ b/.github/workflows/m3u8.yml @@ -62,8 +62,18 @@ jobs: - name: Install Playwright deps if: steps.check_time.outputs.run == 'true' run: | - apt-get update - apt-get install -y libevent-2.1-7 libavif13 + set -e + missing_pkgs=() + for pkg in libevent-2.1-7 libavif13; do + if ! dpkg -s $pkg >/dev/null 2>&1; then + missing_pkgs+=($pkg) + fi + done + + if (( ${#missing_pkgs[@]} > 0 )); then + apt-get update + apt-get install -y "${missing_pkgs[@]}" + fi - name: Fetch M3U8 if: steps.check_time.outputs.run == 'true'