From 8771907002e20d1adc7edde1ffac5d557115bce6 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 11 Dec 2020 08:49:16 +0100 Subject: [PATCH] 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. --- .github/workflows/npm-update.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-update.yml b/.github/workflows/npm-update.yml index 446e4df..421cd96 100644 --- a/.github/workflows/npm-update.yml +++ b/.github/workflows/npm-update.yml @@ -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: |