]> git.proxmox.com Git - ovs.git/commitdiff
github: Don't fail the job if 'apt update' failed.
authorIlya Maximets <i.maximets@ovn.org>
Mon, 1 Feb 2021 11:41:35 +0000 (12:41 +0100)
committerIlya Maximets <i.maximets@ovn.org>
Mon, 1 Feb 2021 14:50:53 +0000 (15:50 +0100)
Some repositories that are enabled in GHA are not stable and lead
to 'apt update' failures:

  E: The repository
     'https://apt.postgresql.org/pub/repos/apt bionic-pgdg Release'
     no longer has a Release file.

This causes the job failure.
In most cases we don't really need any packages from these failed
repositories, so we could try to continue the job.

Previously this kind of failures happened on older branches with
ubuntu 16.04 base image, so we have this workaround already there.
Now it started to fail on bionic images, so fixing there too.

Fixes: 02f76fb42ae9 ("github: Fix Ubuntu package installation.")
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
.github/workflows/build-and-test.yml

index b29c300c5533fde97b482d884576d985e9de65f0..c4487226bee2686dbb25c2eeee3340581197a1d9 100644 (file)
@@ -134,7 +134,7 @@ jobs:
         key:  ${{ env.matrix_key }}-${{ env.ci_key }}
 
     - name: update APT cache
-      run:  sudo apt update
+      run:  sudo apt update || true
     - name: install common dependencies
       if:   matrix.deb_package == ''
       run:  sudo apt install -y ${{ env.dependencies }}