about summary refs log tree commit diff
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2023-10-18 14:28:10 +0100
committerdirkf <fieldhouse@gmx.net>2023-11-29 22:08:01 +0000
commit4e115e18cbb02ecde30edb736a030cf84bf813e9 (patch)
tree2bb3770fc7c22f2df7257d2318f99afd4be1c7b2
parentb7fca0fab36c71fee02d6ecf81acbbaa46942be4 (diff)
downloadyoutube-dl-4e115e18cbb02ecde30edb736a030cf84bf813e9.tar.gz
youtube-dl-4e115e18cbb02ecde30edb736a030cf84bf813e9.tar.xz
youtube-dl-4e115e18cbb02ecde30edb736a030cf84bf813e9.zip
[workflows/ci.yml] Run apt-get update before installing
-rw-r--r--.github/workflows/ci.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7fb8f9f83..f00fd0c6b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -121,6 +121,12 @@ jobs:
           ytdl-test-set: ${{ contains(needs.select.outputs.test-set, 'download') && 'download'  || 'nodownload' }}
           run-tests-ext: sh
     steps:
+    - name: Prepare Linux
+      if: ${{ startswith(matrix.os, 'ubuntu') }}
+      shell: bash
+      run: |
+        # apt in runner, if needed, may not be up-to-date
+        sudo apt-get update
     - name: Checkout
       uses: actions/checkout@v3
     #-------- Python 3 -----
@@ -128,6 +134,7 @@ jobs:
       id: setup-python
       if: ${{ matrix.python-impl == 'cpython' && matrix.python-version != '2.6' && matrix.python-version != '2.7' && matrix.python-version != '3.12'}}
       # wrap broken actions/setup-python@v4
+      # NB may run apt-get install in Linux
       uses: ytdl-org/setup-python@v1
       with:
         python-version: ${{ matrix.python-version }}