workflows: Fix apt installation in npm-update

GitHub's base VMs don't automatically refresh package indexes, so it can
happen that one of the package dependencies get out of date and are not
available on the mirrors any more.

Run `apt update` first to ensure that the workflow installs the latest
packages.
This commit is contained in:
Martin Pitt 2020-12-11 08:49:16 +01:00 committed by Marius Vollmer
parent 224d9a2a12
commit 8771907002

View file

@ -9,7 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up dependencies
run: sudo apt-get install -y npm make
run: |
sudo apt update
sudo apt install -y npm make
- name: Set up configuration and secrets
run: |